It's not a Mac thing, it's a Java thing. Sadly, Java still does not
handle this very well. You'll notice there is no setMinimumSize()
method in JFrame. This would solve this problem, but as yet, there is
no such API.
There is in Java 5.0. But it still doesn't work properly. On Windows
it is still ignored, unless I set the frame to undecorated and set the
window decoration style on the root pane:
JFrame f = new SomeFrameThing();
f.setUndecorated(true);
f.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
Which doesn't work with the Windows native look and feel (you don't get
window decorations and can't resize at all), so I have to use the Metal
LaF.
Yep... definitely needs work. Please Apple make this work properly for
your Java 5 implementation :).
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden