--- old/jdk/src/share/classes/javax/swing/JCheckBox.java 2014-08-11 11:49:36.200291900 +0400
+++ new/jdk/src/share/classes/javax/swing/JCheckBox.java 2014-08-11 11:49:35.849271800 +0400
@@ -24,9 +24,8 @@
*/
package javax.swing;
-import java.awt.*;
-import java.awt.event.*;
-import java.beans.*;
+import java.beans.JavaBean;
+import java.beans.BeanProperty;
import javax.swing.plaf.*;
import javax.accessibility.*;
@@ -35,7 +34,6 @@
import java.io.ObjectInputStream;
import java.io.IOException;
-
/**
* An implementation of a check box -- an item that can be selected or
* deselected, and which displays its state to the user.
@@ -69,13 +67,11 @@
*
* @see JRadioButton
*
- * @beaninfo
- * attribute: isContainer false
- * description: A component which can be selected or deselected.
- *
* @author Jeff Dinkins
* @since 1.2
*/
+@JavaBean(description = "A component which can be selected or deselected.")
+@SwingContainer(false)
@SuppressWarnings("serial") // Same-version serialization only
public class JCheckBox extends JToggleButton implements Accessible {
@@ -195,12 +191,10 @@
* @param b true
requests that the border be painted flat;
* false
requests normal borders
* @see #isBorderPaintedFlat
- * @beaninfo
- * bound: true
- * attribute: visualUpdate true
- * description: Whether the border is painted flat.
* @since 1.3
*/
+ @BeanProperty(visualUpdate = true, description
+ = "Whether the border is painted flat.")
public void setBorderPaintedFlat(boolean b) {
boolean oldValue = flat;
flat = b;
@@ -239,10 +233,9 @@
* @return the string "CheckBoxUI"
* @see JComponent#getUIClassID
* @see UIDefaults#getUI
- * @beaninfo
- * expert: true
- * description: A string that specifies the name of the L&F class
*/
+ @BeanProperty(bound = false, expert = true, description
+ = "A string that specifies the name of the L&F class")
public String getUIClassID() {
return uiClassID;
}
@@ -311,10 +304,9 @@
*
* @return an AccessibleJCheckBox that serves as the
* AccessibleContext of this JCheckBox
- * @beaninfo
- * expert: true
- * description: The AccessibleContext associated with this CheckBox.
*/
+ @BeanProperty(bound = false, expert = true, description
+ = "The AccessibleContext associated with this CheckBox.")
public AccessibleContext getAccessibleContext() {
if (accessibleContext == null) {
accessibleContext = new AccessibleJCheckBox();