Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setMinimumSize




On Apr 5, 2005, at 2:42 PM, Rob Ross wrote:

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

This email sent to email@hidden
References: 
 >setMinimumSize (From: Craig Laird <email@hidden>)
 >Re: setMinimumSize (From: Rob Ross <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.