JDialog().setMaximumSize() Problem

Discussion in 'Java' started by Thorsten23, Feb 15, 2007.

  1. Thorsten23

    Thorsten23 Guest

    Hello,

    in my application I use a JDialog as main window.

    I will leave the JDialog resizable so the user may adjust the size as
    needed. But now my problem: How may I force the Dialog to always keep a
    minimum Dimension?? setMaximumSize() sounds like a perfect method but
    doesn't work...

    thanks for any hints!

    Thorsten
     
    Thorsten23, Feb 15, 2007
    #1
    1. Advertising

  2. Thorsten23

    IchBin Guest

    Thorsten23 wrote:
    > Hello,
    >
    > in my application I use a JDialog as main window.
    >
    > I will leave the JDialog resizable so the user may adjust the size as
    > needed. But now my problem: How may I force the Dialog to always keep a
    > minimum Dimension?? setMaximumSize() sounds like a perfect method but
    > doesn't work...
    >
    > thanks for any hints!
    >
    > Thorsten
    >
    >
    >

    I usually use all three:

    setPreferredSize()
    setMaximumSize()
    setMinimumSize()

    --
    Thanks in Advance... http://weconsultants.prophp.org
    IchBin, Pocono Lake, Pa, USA http://ichbinquotations.awardspace.com
    ______________________________________________________________________
    'If there is one, Knowledge is the "Fountain of Youth"'
    -William E. Taylor, Regular Guy (1952-)
     
    IchBin, Feb 16, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexandr Molochnikov

    Re: JDialog in taskbar under Linux

    Alexandr Molochnikov, Jul 31, 2003, in forum: Java
    Replies:
    0
    Views:
    1,904
    Alexandr Molochnikov
    Jul 31, 2003
  2. Larry Coon

    Controlling where JDialog opens

    Larry Coon, Oct 23, 2003, in forum: Java
    Replies:
    3
    Views:
    11,293
    Kleopatra
    Oct 24, 2003
  3. venky
    Replies:
    1
    Views:
    3,309
    Chandler
    Nov 13, 2003
  4. James
    Replies:
    1
    Views:
    805
    Paul Lutus
    Sep 20, 2004
  5. jadkenth
    Replies:
    0
    Views:
    1,565
    jadkenth
    Feb 15, 2008
Loading...

Share This Page