站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.5.0, Java 2 SDK 英文文档

JButton, JCheckBox, JRadioButton - JDK 5 Documentation v1.5.0, Java 2 SDK 英文文档

Java

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:

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.
Sun
Java Software