Index: Button.java =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/awt/Button.java,v retrieving revision 1.4 diff -u -r1.4 Button.java --- Button.java 9 Aug 2004 13:44:17 -0000 1.4 +++ Button.java 21 Sep 2004 21:03:24 -0000 @@ -119,7 +119,6 @@ Button(String label) { this.label = label; - actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException (); @@ -153,7 +152,7 @@ setLabel(String label) { this.label = label; - actionCommand = label; + if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; @@ -184,7 +183,7 @@ public void setActionCommand(String actionCommand) { - this.actionCommand = actionCommand == null ? label : actionCommand; + this.actionCommand = actionCommand; } /*************************************************************************/