|
From: | Roman Kennke |
Subject: | Re: [cp-patches] FYI: actioncommand fixes |
Date: | Thu, 14 Jul 2005 16:07:30 +0200 |
User-agent: | Mozilla Thunderbird 1.0.2 (X11/20050317) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |