Hi,

Index: javax/swing//JButton.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JButton.java,v
retrieving revision 1.16
diff -u -r1.16 JButton.java
--- javax/swing//JButton.java   13 Jul 2005 00:34:54 -0000      1.16
+++ javax/swing//JButton.java   13 Jul 2005 01:17:10 -0000
@@ -79,7 +79,6 @@
  {
    super(text, icon);
    setModel(new DefaultButtonModel());
-    setActionCommand(text);
  }

This particular piece breaks one of my apps here. The problem with this new approach is that getActionCommand() now does return the correct value but in javax.swing.DefaultButtonModel.setPressed() an ActionEvent gets fired with only the actionCommand set (which may be null) without asking the label. Any idea about that?

/Roman




_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to