JDialog().setMaximumSize() Problem

T

Thorsten23

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

IchBin

Thorsten23 said:
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-)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top