How can I change my program to adjust to screen size?

Top. I was wondering how can I design it so my program will fit all monitors?

If your program is GUI-based and your top-level container is, say, a JFrame, you could use something like the following:
JFrame frame = <whatever>;
frame.setSize(frame.getToolkit().getScreenSize());
// you could also maximize your frame if you are programming with Java 1.4
frame.setExtendedState(Frame.MAXIMIZED_BOTH);Shaun

Similar Messages

  • How can i change a program from Request/Task ?

    Hi everybody
    I have a main program in some request/task number and some include in other request/task numer; i want to transport them in the same task.
    How can i change a program/include from one request/task to other ?
    Thanks
    Frank

    The simplest way is to go TR.SE09 and go to your request "Delete the Object " and again go to your object and save it it `ll ask for request ..add it where ever you want .
    Thanks
    SK

  • How can i change the image in portal logon screen

    hi guys
    pls tel me
    how can i change the image in portal logon screen
    thanks
    regards
    kamal

    Hi
    Download the par file com.sap.portal.runtime.logon.par.bak from
    Go to System Administration -- Support -- Portal Runtime -- Browse Deployment.
    The path should ROOT/WEB-INF/deployment/pcd. Now download that file into local system.
    Create a Par project and make necessary chenages ..i.e
    Open the downloaded par file with WinZip and inside the lib folder three jar files named com.sap.
    portal.runtime.logon_api.jar, com.sap.portal.runtime.logon_core.jar and umelogonbase.jar will be there. Copy those files in the folder u2018libu2019 in par project.
    Now change a branding Image...i.e
    Replace the branding-image. jpg with your company branding image in the same name.
    Once modifications are done,then create a par project and upload the par file into portal.
    Go to the path System Administration -- Support -- Support Desk -- Portal Runtime -- Administration console.
    then browse the file and click on upload.
    Connect to server where the Portal WebAS is running and go to:
    (drive):\usr\sap\<system id>\<system instance>\j2ee\cluster\server0\apps\sap.com\com.sap.security.core.admin\servlet_jsp\logon\root\layout.
    There you will find the images used on logon screen, you can replace them for your
    company images, please take care with the width of the images, as usual, to make this
    change effective, you must restart the whole WebAS.
    Regards,
    Raju

  • How can I change Time data with List Entry Screen ?

    Hi expert.
    I transfer Time Data (Infotype 2003) via CAT6.
    When I go to transaction PA61 and click List Entry icon.
    Record is display and cannot change data.
    If I wanna change data.I must to click Choose Icon one by one record.
    How can I change data with List Entry Screen?
    ps. If record create via PA61. I can change data with List Entry Screen.
    I can't change with record that create via CAT6.
    Best Regards.

    have u tried to change your time entry through CAT2 tcode, ithink if u have created profile for time entry then it should allow you to change and you can use esc otherwise, its generally the standard profile given by SAP. but is 4 one user
    hope this helps
    guds

  • How can I change the fonts on the initial screen?

    How can I change the font and or make it bold on the initial start screen?

    Settings>General>Accessibility>Bold Text>On.

  • Using Windows8, how can you change which program to import photos from iphone?

    When I bought a Windows8 PC (Lenovo Yoga) and synched iphone the first time, it defautled to the Photo App on my PC.  I no longer seem to get the pop up window I used to get under Windows7 asking me if it should use the default program to select and import photos.  Now it directly opens the photo app and asks which to import.  I'm sure its there somewhere but I can't find any way to change which tool is used.  Any suggestions would be greatly appreciated.

    There is only one way
    see here
    http://support.apple.com/kb/HT4083
    also works with  Win8

  • How can i change a program to install internet programs on a hp stream 11 laptop?

    the defaults to open and run a new program from the internet are not the for the Windows Operating System, It came as is brand new, the defaults have nothing  to do with setup programs off the internet.

    Not quite understanding the problem.

  • Can you change the design to adjust with the size of the browser window?

    I am creating my first site in iWeb, and would like the image in the background to adjust as someone adjusts the size of their browser window.  In other words, no matter what size their window is, the entire page fits.  I would like it to accomodate small to large computers and windows without them having to scroll up/down or sideways.
    Any ideas on how to do that?
    Thanks!

    Thanks Wyodor,
    I apologize, but apparently I typed "background" image instead of just an image.  I have an image on the page that I would like to size to do the same thing.  There are layered images on top of it, and I need those images to remain in the same place because they are hyperlinked images that take them to another page. I have attached a photo of what it looks like here. 
    The agree and disagree buttons are the hyperlinks, and I want them to stay static with the image underneath them.  I know that if I put the larger green image as a background image, to have it dynamic, the agree and disagree buttons would not stay in the correct spot when the browser size is adjusted. Thus, it brings me back to my question (but phrased correctly this time)... is there a way to have the entire site, images and all, be dynamic with the size of the browser? No matter what the size of the browser window, I would like the whole page to show so the hyperlink images stay with the image they are on top of.
    Thanks!

  • How can I write the program

    I would like to know how can i Change the program so that the Message'What is the sum of X and Y' can be shown in a GUI after I click the Start Button.
    The program is shown below. Please help me,Thank You Very Much!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class client2 {
    public static void main(String[] args){
    Frame f = new ClientFrame("Client");
    f.setSize(400,400);
    f.setVisible(true);
    class ClientFrame extends JFrame{
    JPanel StartPanel = new JPanel();
    JPanel OutputPanel = new JPanel();
    String Question;
    JLabel label=new JLabel(Question);
    Button GameStart = new Button("Start the Game");     
    Container c=this.getContentPane();
    public ClientFrame(String title){
    super (title);
    c.setLayout (new BorderLayout());
    StartPanel.add(GameStart);
    OutputPanel.add(label);
    c.add(StartPanel,BorderLayout.NORTH);
    c.add(OutputPanel,BorderLayout.CENTER);
    GameStart.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent Evt) {
    GameStart.setEnabled(false);     
    Integer x=10;
    Integer y=20;
    Question ="What is the sum of "+x+ "and" +y;
    System.out.println("Java rules!");
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
    System.exit(0);
    }

    This code won't even compile.
    Anyway, you should set the field Question's value to the String, when you declare it, before you use it in the label.
    Also, you should name your local variables with names that start with lower-case letters. That's one of Java's naming conventions, and it makes your code easier to read.

  • Father's macbook now mine. How can I change name, admin, etc without losing apps and programs?

    Hello.
    My father bought a Macbook Pro 15'  retina 8Gb ram 256Gb SSD about 2 months ago.
    He set it up, bought many apps and programs but eventually got bored of it and gave it to me.
    He is not a Mac enthusiast and thought he should give it a try but he didn't stick to it.
    I'm not a Mac enthusiast either, but a good notebook is an ok present so I took it.
    I installed some programs and stuff, tried to learn how it works (I have no idea, I was always using windows), and I think I like it.
    However, the MacBook has my father's name, my father is the admin, and all the apps programs etc the he and I bought and installed are in his account.
    I have his password though. That's how I've been using it the whole time.
    How can I change the MacBook to make it "my own"?
    I have an apple ID cause I have an iPhone etc but I'm sure just changing that under the admin page won't be enough.
    Will I lose the apps my father bought?
    Will I have to reinstall all the programs that I installed while I was using the MacBook? For example will photoshop and capture nx be deleted as if I was formatting a pc and I will have to install them again?
    Any help will be greatly appreciated.
    PS. MacBook is now running Mavericks OS X 10.9.4 and I want to upgrade.
    But first I want to make myself the "owner" to start getting things in the right order.

    Giving away / Selling your Mac / Resetting  the computer to the factory condition
    http://support.apple.com/kb/HT5189
    http://www.thesafemac.com/how-to-prepare-your-mac-for-sale/
    lunatic_on_the_grass wrote:
    Will I lose the apps my father bought?
    Will I have to reinstall all the programs that I installed while I was using the MacBook? For example will photoshop and capture nx be deleted as if I was formatting a pc and I will have to install them again?
    Yes and yes.

  • How can i change the color of the graph in agreement of the program's condition

    Hi,
    I am using labview 5.1 in my graduation's project final. (sorry by my english, but i am ina hurry)
    How can i change the color of the graph in agreement of the program's condition?
    I am developing a VI to control the temperature of termistors,but i have another sensor too.
    In a graph i have the situation of the termistors,but i want to change the color of the graph when the sensor is active.
    Thanks a lot
    Rafael Wajnsztajn - Brasil

    To change the color of the line itself, you can use the attribute Plot>>Plot Color.
    To change the color of the points, you can use the attribute Cursor>>Cursor Color.
    To select the color, you should have a color box constant inside the Numeric>>Additional Numeric Constants palette.
    This is all in LV 7.0. I'm not sure how it similar it is in 5.1.
    One important thing is to place the attribute node inside a case structure which will execute only when your condition has been filled.
    If this didn't help you, I suggest you post the relevant piece of code, or at least an image of it (no BMPs, please).
    Try to take over the world!

  • Hi! How can I change the shipping address for the program of replacement of the 1 generation ipod nano? I've already received the empty box and now I should send back the old ipod but I'd like to receive the new one to another address. Thank you.

    Hi! How can I change the shipping address for the program of replacement of the 1 generation ipod nano? I've already received the empty box and now I should send back the old ipod but I'd like to receive the new one to another address. Thank you.

    I would contact Apple directly and have them work with to get the iPod shipped to a new/different address.
    http://www.apple.com/contact/
    B-rock

  • How can I change the font size on the Mail program?

    How can I change the font size on the Mail program?  The text is quite small right now.

    Go to fonts and colors in Mail preferences and there you can change the font or size for the different parts of Mail.

  • How can i change the sequence of text element in standard driver program ?

    Hi,
    can u tell me how can i change the sequence of text element in standard  sapscript driver program.. without making a zcopy of standard driver program.
    My problem is when MEDRUCK form is getting printed for PO print , header text is coming before item. But the requirement is to come it after item.So how cani do that without making the zcopy of  SAPLMEDRUCK program..Is there any enhancement point in SAPLMEDRUCK driver program..where i can put my customise code for changing the sequence of text element ?

    Hi,
        Just copy the MEDRUCK to ZMEDRUCK. No need to copy the driver program.
    1) SE71Menu > Utilities > COpy from Client
    MEDRUCK ->>Client 000
    New formname ZMEDRUCK
    2) Now open the ZMEDRUCK in DE language in SE71
    3) Menu > Utilities > Convert original Language
    Change DE  to EN, save and activate
    4) Now open the ZMEDRUCK in EN language
    5) Goto Pagewindows > Main window,
    Look for the HEADER text Text element, copy the whole code under this Text element just after the ITEM text Text element, and comment the HEADER text above.
    Now the Header text Text element will be below ITEM text only. This will full fill your requirment.
    Now goto NACE transaction and add the copied ZMEDRUCK to the EF application.
    Regards
    Bala Krishna

  • Photoshop Photography Program  - How can I change my credit card information?

    I need to change my credit card info to new card.
    I've done everything according to instruction and it brought me to page of
    Photoshop Photography Program
    I clicked on "Manage Plan", but it not giving me option  "Edit Payment Deatails" .
    How can I change my credit card info than?

    Hi,
    Please clear the cookies and browsing history and re-login into your account in a different browser.
    Please check the below link for steps to update your card information,
    url: Manage your membership and payments | Creative Cloud

Maybe you are looking for