Is there any way in Java to enforce a minimum window size?
The last article I can find is from 1999, and has some complicated code to mimic the behaviour…
http://www.javaworld.com/javaworld/javaqa/1999-10/03-qa-window.html
Surely there is a simple method that can be used?
I usually set the minimum size of a window by setting the minimum sizes of the
JComponentsinside of the window.That line of code will limit a component’s minimum size.
You can also call
setMinimumSize()on theJFramedirectly to achieve a similar effect.