Results 1 to 2 of 2
  1. #1
    anu21g is offline Member
    Join Date
    Jan 2012
    Posts
    1
    Rep Power
    0

    Default Dialog box changes size

    Hello,

    I have a problem with dialog box that changes size when I use the application in Windows 7.
    I have written a code in which an action handler is invoked when I click on a Menu button. This will launch a dialog box/window with Text, Text fields and combo boxes. The size of the dialog box seems fine when I run the application in Windows XP, but when I run it on Windows 7, the size is increased and the fields in it(Text, Text fields, combo boxes etc) tend to overlap creating a mess.

    Please help me as to how do I maintain the size across platforms.

    Thank You.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Dialog box changes size

    If you are using Swing then the solution is to use flexible layout managers when designing your GUI. If you are not very familiar with the different layout managers available in core Java, I encourage you to read the tutorials on this subject which you can find here: Lesson: Laying Out Components Within a Container. If any of the tutorial confuses you, then please come on back with any and all questions that you may have, and let's see if we can help you make sense of it.

Similar Threads

  1. Replies: 5
    Last Post: 01-05-2014, 10:12 PM
  2. Setting frame size to the size of an image
    By Yoruichi in forum AWT / Swing
    Replies: 5
    Last Post: 04-22-2009, 05:37 PM
  3. Example of SWT Dialog
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-09-2008, 01:01 PM
  4. Dialog Box
    By uncopywritable in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 01:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •