| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
In case this is of interest: the Quaqua Look and Feel uses a client property named "Quaqua.Component.visualMargin" with a default value of Insets(3,3,3,3). With the insets of 3,3,3,3 the bounds of JComponent accommodate its visual bounds (the button border or the text field border), as well as cast shadows and focus ring. By setting the insets to 0,0,0,0 the visual bounds of the component touch the bounds of the JComponent. Cast shadows and focus ring are cut off. This allows to place two components next to each other, so that their visual bounds touch. Swing actually does support overlapping components by placing the components into a JLayeredPane, or by overriding method isOptimizedDrawing enabled of a JPanel (or whatever the parent JComponent is) so that it returns false. This allows to use gaps between components which are smaller than 6 pixels, even if the visual margin insets is set to 3,3,3,3. By providing the "Quaqua.Component.visualMargin" developers can choose whether they want to place components very close together by reducing the insets and cutting of some artwork, or by keeping the insets and letting the components slightly overlap. With best regards, Werner On 30.09.2008, at 18:00, Mike Swingler wrote:
|
_______________________________________________ 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: | |
| >Button insets (From: Ken Orr <email@hidden>) | |
| >Re: Button insets (From: Mike Swingler <email@hidden>) | |
| >Re: Button insets (From: Rob Ross <email@hidden>) | |
| >Re: Button insets (From: Ken Orr <email@hidden>) | |
| >Re: Button insets (From: Mike Swingler <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.