SUGGESTED FIX
echawkes@gradgrind:/net/jano/export/disk26/awt/echawkes/jdk15-3/src/share/classes/java/awt( 57 )% sccs diffs -C Button.java
------- Button.java -------
*** /tmp/sccs.vFaaYs Sun Apr 20 12:28:31 2003
--- Button.java Wed Apr 2 20:13:30 2003
***************
*** 69,92 ****
*/
public class Button extends Component implements Accessible {
! /*
! * The button's Label.
! * If the Label is not specified it will default to "".
! * @serial
! * @see getLabel()
! * @see setLabel()
! */
! String label;
! /*
! * The action to be performed once a button has been
! * pressed.
! * actionCommand can be null.
! * @serial
! * @see getActionCommand()
! * @see setActionCommand()
! */
! String actionCommand;
transient ActionListener actionListener;
private static final String base = "button";
--- 69,91 ----
*/
public class Button extends Component implements Accessible {
! /**
! * The button's label. This value may be null.
! * @serial
! * @see getLabel()
! * @see setLabel()
! */
! String label;
+ /**
+ * The action to be performed once a button has been
+ * pressed. This value may be null.
+ * @serial
+ * @see getActionCommand()
+ * @see setActionCommand()
+ */
+ String actionCommand;
+
transient ActionListener actionListener;
private static final String base = "button";
***************
*** 108,119 ****
/**
* Initialize JNI field and method IDs for fields that may be
! accessed from C.
*/
private static native void initIDs();
/**
! * Constructs a Button with no label.
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
* returns true
* @see java.awt.GraphicsEnvironment#isHeadless
--- 107,119 ----
/**
* Initialize JNI field and method IDs for fields that may be
! * accessed from C.
*/
private static native void initIDs();
/**
! * Constructs a button with an empty string for its label.
! *
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
* returns true
* @see java.awt.GraphicsEnvironment#isHeadless
***************
*** 123,130 ****
}
/**
! * Constructs a Button with the specified label.
! * @param label A string label for the button.
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
* returns true
* @see java.awt.GraphicsEnvironment#isHeadless
--- 123,132 ----
}
/**
! * Constructs a button with the specified label.
! *
! * @param label a string label for the button, or
! * <code>null</code> for no label
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
* returns true
* @see java.awt.GraphicsEnvironment#isHeadless
|