[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: JButton fixlet
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: JButton fixlet |
Date: |
Mon, 30 May 2005 15:17:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204 |
in JButtons the actionCommand property should initially be set equals to
the button's label. This is fixed with the attached patch.
2005-05-30 Roman Kennke <address@hidden>
* javax/swing/JButton.java
(constructor): Set initial actionCommand equal to the buttons label.
/Roman
Index: javax/swing/JButton.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JButton.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- javax/swing/JButton.java 25 May 2005 10:54:40 -0000 1.12
+++ javax/swing/JButton.java 30 May 2005 13:15:21 -0000 1.13
@@ -79,6 +79,7 @@
{
super(text, icon);
setModel(new DefaultButtonModel());
+ setActionCommand(text);
}
public Object[] getSelectedObjects()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: JButton fixlet,
Roman Kennke <=