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

Similar Messages

  • Why does my maximised app window appear a different size to the screen resolution?

    First: I'm a beginner with windows programming, fumbling my way through visual studio and C# (my background is C with console applications)... sorry if this is a naive question!
    Short story: When I create a window of the same size as the screen resolution. My app window is ~20% larger than my device's screen. Why is this happening?
    Long story: I'm attempting to develop an application with a fixed size window and absolute positioning of UI elements. The application will only ever run at a fixed resolution, on a single device, borderless/non-resizeable and full-screen. The resolution
    of the display on which it will run is 1280x800 (according to the device specs and resolution reported by the windows control panel) . However, when I create a window of this size, it is too large to fit onscreen. In fact, I have to create a window 1024x640
    (0.8x screen resolution) for it to perfectly fit the screen. Anyone know why this is happening?
    Thanks!

    It sounds like you are running in a high-DPI mode but your app is not DPI aware and is getting virtualized. Windows will tell the app it's running at 96 DPI and then embiggen the rendered window so it ends up at the user's requested zoom level.
    See
    Writing DPI-Aware Desktop and Win32 Applications

  • Switcher ?Can you change the size of the screen resolution on the Macbook?

    I'm really interested in buying a Macbook. This will be my first Mac. I love the way they look and feel. I'm concerned with the size of everything on the Macbook. The overall size of the fonts in applications such as word, or safari was too small for me.
    Can you change the size of the screen resolution in OSX like you can on Windows? In Windows doing this makes everything visually bigger.
    Please say you can. I'm really wanting the Macbook as it would be great for for a student like me.
    Thanks in advance.
    Hopefully a Macbook 13" 2.0 Superdrive soon.
    Hopefully a Macbook 13" 2.0 Superdrive White soon.

    With an LCD, if you change the resolution, things will be bigger, but blurrier.
    You can however keep the resolution of the LCD at its native resolution, giving the maximum picture quality, and then use tools, such as Tinkertool…
    http://www.versiontracker.com/dyn/moreinfo/macosx/11967
    … to modify the font display size of items such as the menu bar, Finder labels etc etc.

  • How can I make my flash Webpage displayed same size on any screen resolution?

    Hi,
    How can I make my flash Webpage displayed same size on any screen resolution of my computer? Whether it is 1024 X 768 or 1280 X 960 screen resolution, the size of Webpage (Flash Webpage) should always be same so that user don't need to use horizantal scroll bar to view all the content.
    And secondly, how can I scroll my webpage vertical on moving with my mouse like in the following link: The below link also shows that it's webpage size is always same on any screen resolution.
    http://www.matkostankovic.com/#/portraits/oliver-mlakar/http://www.matkostankovic.com/#/about/
    Thanks.

    Hi,
    Please do help me.
    Waiting for response from anybody who can help me.to solve this problem.
    Thanks.

  • 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

  • Smaller desktop size but preserving screen resolution (add borders)

    Does anyone know if it's possible to add borders to my screen (the device) (using xrandr maybe)?
    I have some old TV which has HDMI connector. It can show 720p resolution. Problem is that, for some very odd reason, it cuts about 20px from _every_ side, thus leaving the top bar on my desktop hidden, which is more than annoying.
    I believe the problem is on the software on that TV. I actually work on a place where I could have access some service manuals of this TV. So far I haven't found any way to correct this problem. Unfortunately I cannot upgrade the software of that TV because we have services only for household machineries which don't include TVs. Thus we don't have proper equipment for upgrading the software.
    Soooo this bring me here: asking you if it's possible to set desktop size little a smaller to fit it on my TV. I'd like not to have it configured on XOrg's confs because I normally use my second monitor in place of that TV and with my intel GPU (on laptop) I cannot have more than two monitors connected at the same time.
    In case if it's relevant I use awesome (wm).
    Thanks in advance!

    Oh, I HATE that! It's called overscan.
    A mythtv thread here may help you fix it.
    The only thing I use my TV for is to watch videos using mplayer. Even though the borders of my desktop are cut off because of overscan, mplayer seems to "just work" and play the videos correctly.

  • Should I match STD preview size to native screen resolution or the resolution I am actually using?

    My iMac 27" monitor is 2560 pixels wide but I run it on a screen resolution of 2048 x 1152. Would it be a waste for me to set the Lightroom Standard Preview Size to size to the setting of 2880? I am thinking I should set the Standard Preview Size to 2048 to save space on my hard drive. What do you think?
    When I set my monitor to the native resolution the text on menus etc is pretty hard to see with my tired old eyes. Is there a disadvantage to using  2048 x 1152 on my 27" monitor when using Lightroom?

    DanATD wrote:
    I am thinking I should set the Standard Preview Size to 2048 to save space on my hard drive. What do you think?
    If I were you, I'd use Jeffrey Friedl's Online Lightroom Configurator to bump the font-size of the text, and leave the monitor resolution at 2560 (and standard previews at 2880). Unless of course you can't see image detail all that well either with the increased resolution. There may be some text that jf's configurator can't reach - dunno, but it may be worth a shot..
    If bumping font size (and monitor rez) doesn't pan out, then the answer is yes: 2048 is sufficient resolution for standard previews, at a monitor rez of 2048.

  • Is it possible to set frame size for a new project ?

    Hi all,
    i would like to create a video in which there will be 2 videos playing the same content from a different angle.
    Each video is 512 x 384 .
    So i would like to set the frame size of the project as 1024 x 768 in order both videos to exist.
    I searched around for tutorials regarding this but i didn't find anything similar.It seems as if i cannot set the frame size of the project from the start.
    So,is there a way to do this?
    Thank you for your time reading this.
    Regards,
    nikits72.

    Hi and thank you for your answers.
    @->shoternz
    It will be displayed in my monitor and probably on you tube.Btw your remark on size was very accurate.Didn't think of that.
    Although i could use a little bigger height to use it to display a logo or something....
    I am very premiere newbie as you can understand.
    Regards,
    nikits72

  • Doubt in setting Frame Size

    Hi,
    I'm having problem in setting the frame size even though i used the setSize method.I'm not able to figure out whts wrong ...here's a part of my code :
    JFrame frame = new JFrame("MyFirstFrame");
         frame.setSize(600,600);
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel jp = new JPanel();
         frame.getContentPane().add(jp);
         frame.pack();
         frame.setVisible(true);
    I'm new to java...i dont know where i have gone wrong.....the frame display in the minimum size !
    pls help !
    Thanks...

    i mean ------------
    public classs {
    //some
    JFrame frame = new JFrame("MyFirstFrame");
    frame.setSize(600,600);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel jp = new JPanel();
    frame.getContentPane().add(jp);
    frame.pack();
    frame.setVisible(true);
    now check until working ,you may use the setLocation(location,location).......
    setLocation(int,int).............................

  • Set desktop wallpaper based on screen resolution for both WinXP and Win7

    I'm hoping someone can answer this for me. I would like to be able to set the desktop wallpaper based on the current screen resolution when a user logs in. I've made several .BMP files for varying resolutions with our corporation logo. But, say
    if a wallpaper for a resolution of 1024x768 on a 4:3 monitor is set, then that monitor is replaced with a 16:10 monitor with a resolution of 1280x800 or 1600x900, the wallpaper looks stretched out and ugly. The only way to change it is manually on
    each computer, but most end users (students) would not have permissions to do so.
    I thought this question would have been asked before, but after many, many searches, I've only come across one reference that copies the background from a network share to a location on the local computer, which I found
    here. In my case, the file will already be on the local computer, but I am not sure how to force the system to change the wallpaper based on the current screen resolution. I'm sure it is possible and maybe I am overlooking something very simple. I
    was also thinking that this would either happen only once on first login or maybe based on user authentication (which group the user belongs to) so that teachers are still able to change their wallpaper, but students would not be able to.
    If it helps, I will be deploying the image using MDT 2010 Update 1. The same base image will be used on multiple machine types (HP desktop sand laptops and Lenovo desktops) which could have one of 6-7 different monitor types connected. I'd also like
    this to happen on the local machine instead of GPO or logon script as there is already a lot happening there.
    I would need to be able to do this for both Windows XP Pro and Windows 7 Ent x64. The XP machines will mostly have 4:3 monitors, but there are exceptions.
    Maybe what I am asking isn't entirely possible or possible at all. I, unfortunately, am in the extremely early stages of learning Microsoft Scripting (VBScript and PowerShell) to use with MDT 2010, so I know next to nothing when it comes to these scripting
    processes, but am willing to try and learn.
    Any help anyone can suggest, I would be extremely grateful.

    I almost abandoned this because I thought it was going to interfere with using BGInfo. But, as it turns out, I was able to incorporate the running of BGInfo into a script that I
    created. And, once I saw what 16:10 Aspect Ratio background looked like on a 16:9 Aspect Ratio screen, I was not satisfied.
    I happened to use the first script that MkShffr posted from geekshangout.com, but then I added more items to it. I also created three high-res wallpaper backgrounds as suggested
    by pagerwho.
    My script is based on the Aspect Ratio of the current resolution. Since most, if not all, systems will get the resolution set during deployment, this was easy to calculate.
    And by forcing the output of the Aspect Ratio to two decimal places, I just used a Case statement to select which aspect ratio to choose from and apply the wallpaper assigned to it. I thought about using If Then statements, but I think the Case statement
    is much cleaner.
    And, because BGInfo wants to change the Picture Position to "Tile" instead of "Fit" that I manually set it to in my image, I added two reg key change lines per Case. BGInfo still
    changes the Picture Position to "Tile", but for whatever reason, this works. I tested this by using a laptop with a 16:9 Aspect Ratio screen. In my image, I manually set a 16:10 wallpaper because that will be the primary Aspect Ratio used in our corporation,
    however we are getting more 16:9 Aspect Ratio laptops and from what HP is saying, everything will be standardizing on this Aspect Ratio.
    I made sure the Screen profile that I saved in my image was loaded which includes the 16:10 wallpaper. I then placed this script in the “C:\ProgramData\Wallpaper_Change”
    directory that I created in the image. I then added a registry value in HKLM\System\Microsoft\Windows\CurrentVersion\Run and created a String Value. I did this so that it would run at log in, but I didn't want it to show in the Startup Folder in the All Programs
    Menu. It takes less than a second to run, but it seems to work well. I tested it several time to see if there were any anomalies, but it seemed to work great each time. I have yet to test it with a computer that is on the domain with a regular user account,
    which I will be doing in the next day or two.
    In the mean time, if someone want to try it out and see if it works from thier use, here is the code. I did comment out the wscript.echos, but left them in to use for troubleshooting
    in the future.
    -Mike
    ==============================
    Option Explicit
    Dim array_ScreenRes, screenRes_X, screenRes_Y, oIE, width, height, aspect_ratio
    Dim decpos, wallpaper1, wallpaper2, wallpaper3, oShell
    array_ScreenRes = GetScreenResolution
    screenRes_X = array_ScreenRes(0)
    screenRes_Y = array_ScreenRes(1)
    wallpaper1="C:\Windows\Web\Wallpaper\TSC\Win 7 - 2560 x 1440 (16-9)TSC.bmp"
    wallpaper2="C:\Windows\Web\Wallpaper\TSC\Win 7 - 2560 x 1600 (16-10)TSC.bmp"
    wallpaper3="C:\Windows\Web\Wallpaper\TSC\Win 7 - 2560 x 1920 (4-3)TSC.bmp"
    Set oShell = CreateObject("Wscript.Shell")
    'wscript.echo "Resolution is " & screenRes_X & "x" & screenRes_Y
    aspect_ratio = screenRes_X/screenRes_Y
    decpos=instr(aspect_ratio,".")+2
    aspect_ratio=left(aspect_ratio,decpos)
    'wscript.echo "Aspect Ratio is " & aspect_ratio
    Select Case aspect_ratio
    Case "1.77"
     oShell.RegWrite("HKCU\Control Panel\Desktop\Wallpaper"), wallpaper1
     oShell.RegWrite("HKCU\Software\Microsoft\Internet Explorer\Desktop\General\WallpaperSource"), wallpaper1
     oShell.RegWrite("HKCU\Control Panel\Desktop\TileWallpaper"), "0"
     oShell.RegWrite("HKCU\Control Panel\Desktop\WallpaperStyle"), "6"
    Case "1.6"
     oShell.RegWrite("HKCU\Control Panel\Desktop\Wallpaper"), wallpaper2
     oShell.RegWrite("HKCU\Software\Microsoft\Internet Explorer\Desktop\General\WallpaperSource"), wallpaper2
     oShell.RegWrite("HKCU\Control Panel\Desktop\TileWallpaper"), "0"
     oShell.RegWrite("HKCU\Control Panel\Desktop\WallpaperStyle"), "6"
    Case "1.33"
     oShell.RegWrite("HKCU\Control Panel\Desktop\Wallpaper"), wallpaper3
     oShell.RegWrite("HKCU\Software\Microsoft\Internet Explorer\Desktop\General\WallpaperSource"), wallpaper3
     oShell.RegWrite("HKCU\Control Panel\Desktop\TileWallpaper"), "0"
     oShell.RegWrite("HKCU\Control Panel\Desktop\WallpaperStyle"), "6"
    End Select
    oShell.Run "%windir%\System32\RUNDLL32.exe user32.dll,UpdatePerUserSystemParameters", 1, True
    oShell.Run "C:\ProgramData\BGInfo\BGInfo.exe C:\ProgramData\BGInfo\TSC.bgi /timer:0"
    Function GetScreenResolution()
     Set oIE = CreateObject("InternetExplorer.Application")
     With oIE
        .Navigate("about:blank")
        Do Until .readyState = 4: wscript.sleep 100: Loop
        width = .document.ParentWindow.screen.width
        height = .document.ParentWindow.screen.height
     End With
     oIE.Quit
     GetScreenResolution = array(width,height)
    End Function

  • How to set the size of the screen in module pool.

    how to edit  the actual size of the screen in module pool  programing.

    Hi purshothaman,
    1. use the FM RPY_DYNPRO_READ
    2. Pass the programname and screen number
    3. We will get back various values in HEADER structure
        LINES
    COLUMNS
    regards,
    amit m.

  • 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.

  • How to get reasonable font size with higher screen resolution

    I'm using my new Mac Mini as living room PC with 42" plasma screen and tv itself seems to support quite well the 'better' resolutions like 1024x768. Unfortunately then text is too small to read from sofa (which is about 3 meters away from tv). I have switched back to 800x600 resolution where font sizes are almost ok but many programs complaint about the resolution (e.g. Google Earth) and need to change the resolution back and worth to get some OK button pressed which is glumsy.
    I have also found pretty good Tinkertool to finetune font sizes but it does not affect all font sizes like I want. So question is there any better solution how I could find theme that suites better for living room purpose (have not find any theme possibilities for MacOSX). In Linux I could finetune X fontserver, in WIndows I could fine tune the theme used to have bigger fonts, how do I do it in this cool mac?

    I hear you! I would also like to see an answer for this. I am running Leopard on a Mac Mini on my 50 inch display in the living room. I have set the resolution to 1080p so that the video and photos are as sharp as possible. (man the videos look great)...
    But, I have a very hard time reading the menu bar, as well as safari and mail from this machine. I realize that there are ways to increase the font sizes, but:
    1) when I restart safari, I have to change the settings each time
    2) when I restart mail, I have have to change the setting each time
    3) I cannot figure out a way to make the menu bar larger
    I really don't want to bring the mac mini down to a resolution like 800X600 - I think it would look horrible on the large screen.
    What is a big screen lover to do?
    Any help would be most appreciated...
    Cheers!

  • 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.

  • Image size related to screen resolution - Questions

    Trying hard to get my head around picture dimensions vs quality vs screen/printer resolution, can anyone confirm if what I think I understand is correct.
    My Canon RAW images are 3888 x 2592 pixels. If I export from LR a full sized JPEG (at 100% quality) I get an image that is 3888 x 2592 pixels in size. So the questions:
    1) If I open the JPEG in something simple like Windows Picture Viewer and hit the 'Actual Size' button then put simply is each pixel in the picture lighting up a pixel on the screen ?
    2) If I zoom out then presumably there are more picture pixels than screen pixels so some data is thrown away and there is some downsizing of the image ?
    3) If I zoom in then there is not enough data and there is some intrpolation to upsize the image ?
    What I'm actually trying to get to grips with is, if i want to post pics online or e-mail them, when to drop the quality a bit to save filespace and when to change image size.
    Cheers

    Downsample a LOT for email and quite a lot for web viewing. Not only might they not look as good as they should, people will not be happy waiting for a 3000+ pixel image to download to them.
    A "full width"
    Of course, if someone wants to print the photo, then you need to maintain the resolution and they should know it will take some time to download.
    If you want to see what size others use for the web and can't estimate by looking at it on your monitor in a browser, you can find out the dimensions of a picture you are viewing. In Firefox and windows, right click on the photo and select properties.
    flickr, for example, resizes to various sizes. Even though you can upload full size images to flickr, you might not want to do so to protect your full-size image from being used.

Maybe you are looking for

  • Transfer data from FW drive to new imac

    My previous imac died (logic board) and the HD from it is now in a firewire enclosure. Any tips on the best way to transfer data such as addresses, email etc.. to my new imac?

  • How should I move all of my Final Cut Pro files to an external drive?

    My MacBook Pro doesn't have enough space to hold all of my Final Cut Pro X files (my internal hard drive is only 120GB), and I bought an external hard drive that has 120GB capacity too but want to move all of my FCP files to that drive. What exactly

  • Video Streaming stops go stops from Air to ATV3

    Hello, I have buyed ATV 3. When I look youtube video on my Mac Air perfect. But when I want to stream it to ATV3.  After 3 seconds the video stops go stops go ..... What can be the reason? Distance to router perfect. ATV3 can stream from inside softw

  • Burning Movie files to cd/dvd

    Can I burn tv shows or movies I download to a dvd or other useable format for playback on a set top DVD player? Is there a way to convert m4v format to mpeg1/2 or other video format that can be used to generate a movie disk?

  • From title screen to Stage01

    I've been having an issue in Flash CS4 trying to make a game. From the title screen you click on the start button it does go to the next stage, which right now is currently set to Stage03 for testing purposes. However when it moves from the title scr