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: minimum (maximum) size



The only other advice I'd offer is to log a bug with Sun. Some people like that minimumSize isn't enforced (which essentially makes it the same as preferredSize IMO), others don't. It'll only be up to the big boys to decide.

md


On Sunday, November 24, 2002, at 11:19 AM, Charles DeCroes wrote:

it is up to your layout manager. All layout managers resize in some sort of way. To prevent this you need to set you layout manager to null and use component.setBounds(int,int,int,int); or write your own layout manager by extending layoutmanager or layoutmanager2
On Sunday, November 24, 2002, at 11:34 AM, Edward Kenworthy wrote:

I've always understood the minimum and maximums to be merely suggestions. AFAIK it's not possible and probably not advisable given the amount of variation there is in lafs and layout managers. I'm prepared to be proved wrong but I believe that's the case.

On Sunday, November 24, 2002, at 04:47 pm, Piotr Rychlik wrote:

Hi,

Is there any method that prevents components from shrinking when the frame containing them is resized. I am using setMinimumSize method but it seems that it only works with Aqua L&F. With Aqua L&F it is impossible to make the frame smaller if one of its components already reached its minimum size. How to get the similar behavior using L&F other than Aqua?

Piotr Rychlik
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: minimum (maximum) size (From: Charles DeCroes <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.