JButton, JCheckBox, JRadioButton |
Other Swing Changes |
New JCheckBox borderPaintedFlat Property
JCheckBox is often used as a cell renderer in tables and lists. The specifications for the Java Look and Feel (codenamed Metal) and the Windows Look and Feel specify that the check box be rendered with a 2D flat border rather than a 3D border when used as a cell renderer. The borderPaintedFlat property has been added to enable this behavior.See:
- public static final String BORDER_PAINTED_FLAT_CHANGED_PROPERTY
- public void setBorderPaintedFlat(boolean b)
- public boolean isBorderPaintedFlat()
Add DefaultButtonModel getGroup Method
This was an oversite of the original implementation. Unfortunately, since ButtonModel is an interface, this property cannot be added to it. It has instead been added to DefaultButtonModel, which should help most developers who want this.See:
Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved. Please send comments to: swing-feedback@java.sun.com. This is not a subscription list. |
Java Software |