Resizing JFrame according to screen resolution

I have developed a desktop application using netbeans 6.1.Screen works fine for 1024x768 pixels but when i change the resolution or when i execute the application on a different machine which has got a lesser resolution the components disappear and they are not displayed properly.I have used Free Design Layout for desiging my screens.Is there any issue with the layout used?.I have used ToolKit to get the screen size and tried setting the dimensions using setPreferredSize()/setSize() but nothing works.Could any one help me with a solution?
Thanks in advance
Regards
Nivetha

nivetha wrote:
I have used Free Design Layout for desiging my screens.Is there any issue with the layout used?I am not familiar with the Layout and do not find it under the API listings for Java 1.6.0_07.
I see, I just caught a NetBeans thread--you're using the GUI Builder in NetBeans. That layout you mentioned is not a layout, but a description of what they call their method of GUI generation--it still uses a regular Java Layout in that autogenerated GUI code.
You're question is not a Java question, but rather, a query on if NetBeans has some problems with it's GUI Builder in the version of NetBeans that you are using. It would be more appropriate to ask that question over on the NetBeans site unless you can look in the autogenerated code and tell us what Layout you are using.

Similar Messages

  • How to programmatically resize vi for different screen resolutions ?

    Hi,
         I have been struggling with this,How can i built a vi that should run for different screen resolutions (on different pc's).
    There are several threads on forum , But i dont find the exact solution for it.
    I have already tried with VI properties in the VI but i dont think its working.
    Can someone please help me ?
    Thanks and regards,
    Shivkant Paswan

    Yup it is a pain to use panes, but that is the easiest method I've found which meets my requirements.  Learn to use panes and splitters effectively, and then learn their limitations and workaround when you find those limitations.  In general LabVIEW should handle multi-resolutions, and resizing better but these are the tools we have today.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Flash website- problems with sizing on different computers- code to resize based on browser/screen resolution

    Ok Guys-
    So I have put up a trial of my flash website-
    www.nicksdesign.com/flash
    I'm new at flash- as this is the first project I've done in
    flash, and the problem is...
    I put the file in a simple HTML file in dreamweaver, and i
    published the files, tested them on my computer, and it's great-
    the size fits enough so that no scrolling is needed.
    However-
    I asked a friend to test it- and on his computer you are
    required to scroll both vertically and horizontally in order to see
    all the content on the 100% flash website.
    My question-
    Are there any codes that can resize the swf file or the HTML,
    based on screen resolution/browser [however- we tested in the same
    browser]
    Any help would be SUPER appreciated
    Best Regards,
    Nick Smith

    I took a look at your html source code, I notice that your
    size of width sets at 1270 while height sets at 537. The width is
    way too wide.
    Secondly, flash-based website aren't that cool.
    Finally, you probably get a better help from Flash forum
    participants. This forum is all about Dreamweaver-related topics,
    and is not about how to create or design Flash for the first time.
    Hope that helps and good luck with your project.
    Cheers, Brian
    quote:
    Originally posted by:
    Livelife92
    Ok Guys-
    So I have put up a trial of my flash website-
    www.nicksdesign.com/flash
    I'm new at flash- as this is the first project I've done in
    flash, and the problem is...
    I put the file in a simple HTML file in dreamweaver, and i
    published the files, tested them on my computer, and it's great-
    the size fits enough so that no scrolling is needed.
    However-
    I asked a friend to test it- and on his computer you are
    required to scroll both vertically and horizontally in order to see
    all the content on the 100% flash website.
    My question-
    Are there any codes that can resize the swf file or the HTML,
    based on screen resolution/browser [however- we tested in the same
    browser]
    Any help would be SUPER appreciated
    Best Regards,
    Nick Smith

  • HOW TO ADJUST MY FRONT PANEL & ITS OBJECTS ACCORDING TO SCREEN RESOLUTION.

    Hai..
    I want my fp to be visible in its standard form on all screen resolutions.I've used Maintain window prop for diff screen resolutions but it didnt work.Any Solution to this problem? 

    Did you also set the "Scale all objects..." setting?
    For me mostly there had to be only 1 control to be scaled or changed in proportions, like a graph or listbox, the other controls (buttons, menu rings) should remain in size. This is best done by using splitters. You can lock them, stick them to one side of the window, make them invisible.
    greets, Dave
    Greets, Dave

  • Resize inner tables according to screen resolution

    Currently the page ( outer table ) widths are set to 760. Ideally we want set this to 100% so that the width will be relative to the monitor resolution. Also in the grid tables, the cols to be displayed is set to 4. We need to make this dynamic in relation to the width of the page. Unfortunately, each jsp needs to be changed..
    without changing each and every jsp how can i do..it
    any suggestions appreciated.

    Separate structure and style from each other. With other words, use CSS style classes and define them in one separate CSS file.

  • Setting page break automatically according to screen resolution.

    i want to set the page break according to page breaking?
    help please?

    nivetha wrote:
    I have used Free Design Layout for desiging my screens.Is there any issue with the layout used?I am not familiar with the Layout and do not find it under the API listings for Java 1.6.0_07.
    I see, I just caught a NetBeans thread--you're using the GUI Builder in NetBeans. That layout you mentioned is not a layout, but a description of what they call their method of GUI generation--it still uses a regular Java Layout in that autogenerated GUI code.
    You're question is not a Java question, but rather, a query on if NetBeans has some problems with it's GUI Builder in the version of NetBeans that you are using. It would be more appropriate to ask that question over on the NetBeans site unless you can look in the autogenerated code and tell us what Layout you are using.

  • Set frame size according to screen resolution

    hi frns,
    i have developed a GUI by using BorderLayout and GUI contains around 7 components.I am primarily working on 1024*768 resolution..THe main problem is when i using 800*600..My interface will run out of shape..How to avoid this. ......reply urgently.
    thanku.

    Cross-post. Reply can be found here:
    http://forum.java.sun.com/thread.jspa?threadID=695824

  • How can I resize my Flash site to fit any screen resolution?

    I built a 100% flash site with tiled framing but I have a
    problem. My flash was built 766 x 750 pixiels. When viewed at
    resolutions greater than 1024x768 the webpage looks great but
    anything less than that it looks like @#$@. I know most people
    probably view at 1024 x 768. Is there anyway to auto resize based
    up on screen resolution or something to detect the screen size and
    adjust the webpage accordingly.
    www.platlimosvc.com
    Below is my html (index.html) for my flash movie:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <title>Untitled</title>
    <meta http-equiv="content-type" content="text/html;
    charset=UTF-8">
    <link href="style.css" rel="stylesheet"
    type="text/css">
    </head>
    <body>
    <table cellpadding="0" cellspacing="0" border="0"
    style="width:100%; height:100%">
    <tr>
    <td valign="top" style="width:100%" height="750">
    <table cellpadding="0" cellspacing="0" border="0"
    width="766" style="height:100% " align="center">
    <tr>
    <td valign="top" width="234" style="height:750px ">
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swfl
    ash.cab#version=6,0,29,0" width="766" height="750">
    <param name="movie" value="flash/xxxx_main.swf">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <!--[if !IE]> <-->
    <object data="flash/xxxx_main.swf"
    width="766" height="750"
    type="application/x-shockwave-flash">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="pluginurl" value="
    http://www.macromedia.com/go/getflashplayer">
    FAIL (the browser should render some flash content, not
    this).
    </object>
    <!--> <![endif]-->
    </object>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign="top" style="width:100%; height:1px;
    background-color:#6C6C6C">
    <table cellpadding="0" cellspacing="0" border="0"
    style="width:100%; height:1px">
    <tr>
    <td valign="top" style="width:50%;
    height:1px"></td>
    <td valign="top" style="width:766; height:1px">
    <table cellpadding="0" cellspacing="0" border="0"
    width="766" style="height:1px ">
    <tr>
    <td valign="top" width="766" style="height:1px
    "></td>
    </tr>
    </table>
    </td>
    <td valign="top" style="width:50%;
    height:1px"></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign="top" style="width:100%; height:100%">
    <table cellpadding="0" cellspacing="0" border="0"
    style="width:100%; height:100%">
    <tr>
    <td valign="top" style="width:50%;
    background:url(images/bottom-3.gif) top right;
    height:100%"></td>
    <td valign="top" style="width:766;
    background-image:url(images/bottom-5.gif); height:100%">
    <table cellpadding="0" cellspacing="0" border="0"
    width="766" style="height:100% ">
    <tr>
    <td valign="top" width="766" style="height:100%
    "></td>
    </tr>
    </table>
    </td>
    <td valign="top" style="width:50%;
    background:url(images/bottom-4.gif) top left;
    height:100%"></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </html>

    tlcarl,
    > I know most people probably view at 1024 x 768.
    You think so? Even if they have their resolution that high
    (which is
    fairly standard, nowadays), do you think most people maximize
    their browsers
    to fill that whole area?
    > Is there anyway to auto resize based up on screen
    > resolution or something to detect the screen size and
    > adjust the webpage accordingly.
    There is, indeed. :) Check out the Stage.onResize event in
    the
    ActionScript 2.0 Language Reference. That event is dispatched
    when the
    browser (or whatever container) is resized -- in cases where
    the SWF is
    embedded with percentages. If that's your aim, you'll need to
    code against
    that event, which can be done like this ...
    http://www.quip.net/blog/2006/flash/how-to-position-movie-clips-browser-resizing
    It can take a bit of thought, depending on the complexity of
    your goal,
    but the result is usually worth it. The site in your URL is
    already built,
    so this wouldn't do much of anything without opening the
    hood, so to speak,
    and completely rebuilding the engine. A Flash movie has to be
    designed and
    programmed to respond to the Stage.onResize event.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Openbox: Resize Window According To Resolution

    Is it possible to use to resize windows according to the resolution of your screen in OpenBox3? What I want to do is make windows half the screen width with a shortcut. I can do this like this in rc.xml:
    <keybind key="S-Right">
    <action name="UnmaximizeFull"/>
    <action name="MaximizeVert"/>
    <action name ="MoveResizeTo">
    <x> 720 </x>
    <y> 0 </y>
    <width> 720 </width>
    </action>
    </keybind>
    But I would like to make it more flexible and to set it to this without knowing how much half of my (1440x900) screen is (720).  Unfortunately resizing after setting MaximizeVert doesn't work which would be a step in the right direction.
    Is there a way to resize a maximised window? Is there another way of doing this?

    Seems there is no way to do this yet although it should be possible since openbox knows what size to "maximise" your windows to.
    Another question: is it possible to perform an action after pressing PART of a keychain? I.E. keybind an action to C-r say and then followed by another key to complete a keychain to perform a different action:
    <keybind key"C-r">
    <action name="action 1"/> <!-- action when C-r is pressed -->
    <keybind key="e">
    <action name ="action 2"/> <!-- action when C-r then "e" is pressed -->
    </keybind>
    </keybind>

  • Designing Forms to match Monitor's Screen Resolution

    Hello folks,
    Just wondering. Does anyone know Oracle built-in procedures or
    functions to make sure Forms will be displayed appropriately
    according to screen resolution.
    Your help will be greatly appreciated.
    Erik
    null

    Erik Martens (guest) wrote:
    : Hello folks,
    : Just wondering. Does anyone know Oracle built-in procedures or
    : functions to make sure Forms will be displayed appropriately
    : according to screen resolution.
    : Your help will be greatly appreciated.
    : Erik
    Hi
    Upto my knowledge there is no any built-in avilable to know
    the screen resolution. In the design time itself, the developer
    has to decide about the coordination system for the form module.
    It depends on to which platform the you are going to deploy the
    system. If it should support both character and GUI mode then it
    is advisible to select charcter cell mode.
    If it is only GUI mode, it's upto you.
    null

  • Which is the right screen resolution?

    Hi,
    For which screen resolution, I should design my new application?,
    as all of us know, developer application screens are not flexible
    according to screen resolution settings. My good old application
    is designed for 600/400 and now people wants to use their PC with
    minimum of 800/600 resolution setting, in that mode, my
    application sits in left corner of the screen.
    Thanks,
    -Srikanta
    null

    What I meant by "off" where the colors were not correct.
    If the colors are correct after you play the game then I think it's just a resolution and/or refresh rate problem.
    After the game, when the colors are correct, open your Displays system preferences and look at what it says the resolution is (click the Display tab in the Displays preferences if not already on that tab).  If a refresh rate is shown also note that.
    Now when the colors are "bad" (incorrect) again open the Displays system preferences.  Is the resolution the same as it was after the game?  If there is a refresh rate is it the same as it was after the game?  If yes, then there is some kind of problem and I don't believe an reinsitall is going to change anything (unless you wipe out all your existing preferences).  If the resolution (and refresh rate) are different than you had after the game then change them to what it was after the game to see if you get the correct colors.

  • I updated to iTunes 11 on my Windows PC. Since the update, when I open iTunes its window is too large for my screen. Resizing is a pain, because I have to change my screen resolution. And when I restart iTunes,it has reverted back to being too large.Help!

    I recently updated to iTunes 11 on my Windows PC. Since the update, each time I open iTunes its window is too large for my screen. Resizing it is a pain, because I have to change my screen resolution. And then when I restart iTunes, it has reverted back to being too large. Please help!

    Having the same issue here....a quick fix is to just minimize the window, and immediately maximize it.  It will now fit the screen.  Trouble is, after you close it, you'll have to do it again when you re-start itunes.  The good news is it takes all of about 2 seconds.  Apple should fix this.  Should.

  • Resizing  Screen Resolution for Specific Apps?

    Hello team,
    Is it possible to resize screen resolution for specific applications? Most of my apps look fine at 1024x768, but there are a couple of older OS 9 apps that I need to run (talking school computers here) which are a bit on the small side when viewed at that resolution. Can I somehow set things so that when those applications are launched, the resolution changes to 800x600, and then reverts to 1024x768 when they're quit again? Any and all details about this will be most appreciated, and I thank you in advance for your help!
    Electronically yours,
    Erik D. Dahlin
    School-based Technology Specialist

    LCD panels must be used at their native resolution. Whatever it is for you monitor is what you must set it to.
    Bob

  • How to change the Grid ALV output resolution according to screen

    Hi All,
    I have a requirement in which I have to adjust the Grid ALV Output Screen resolution according to user screen. I mean if the user has any type of  screen (17'' , 15'', 12.1'' ),  the output should be completely fit to his screen.
    Helpful solution will definitely be rewared.
    Amit Varlani

    Hi!
    I doesn't depends on the screen size only the desktop resolution.
    If the desktop resolution is set to 1024*768 on every computer, then it will be the same all the time.
    You can set the desktop resolution in your windows (right click on desktop - properties - settings).
    Regards
    Tamá

  • Screen-resolution resize

    Hi,
    Since I have Leopard my screen-resolution always resize after my pc is coming back from the screensaver or hibernate-mode. Also when I afterwards go to the screen properties my default screen-resolution (1440x900) is not listed and I have to detect screens and he automatically set everything right, but thit is not very handy.
    Thx in advance,
    Regards

    reset [PRAM|http://support.apple.com/kb/HT1379] and [SMC|http://support.apple.com/kb/HT1411].

Maybe you are looking for

  • My printer hp officejet pro 8600 prints but it doesn't scan.

    My Printer is printing but not scanning. I get an error message that is busy with another appliation or user. I'm the only user, and already close all other application. Product number is CM749A

  • RAID Arrary won't Mount

    I'm having some issues mounting my RAID on xserver Xeon, yesterday in order to mount the drive I had to go to RAID admin/utilities/make drive available for use, this process erased all the data and mounted the drive, but today after rebooting the ser

  • User admin error

    Hi Experts, I am using SAP portal 7.0, facing an error in user administration->identity management. Below is the error "A required service for the identity management user interface is not available. Contact your system administrator"

  • Content server   404 auth error

    hopefully this is where this should be posted. we have a pc-ui application that needs to retrieve a signature that was captured via crm mobile sales and sychcronized to crm online.  currently we can not get the signature to synchronize. we are trying

  • Powerbook G4 only shows the apple logo on bootup and freezes.

    My Powerbook G4 is about 7 years old and was in pretty good condition. It wasnt used every day and mainly used it for internet browing and photoshop work. Recently my laptop stopped working. When I boot up the laptop it sounds like the CD drive is re