diff options
author | Roman Kennke <roman@kennke.org> | 2005-05-30 13:15:21 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2005-05-30 13:15:21 +0000 |
commit | 055092ff19837451f02e985dd511434fd338f020 (patch) | |
tree | 20756e29db3e2e1e4960280b7ab6c99c3d2e04fe | |
parent | 6a9f8f67269c5bbf77682f2b22b724748c930280 (diff) | |
download | classpath-055092ff19837451f02e985dd511434fd338f020.tar.gz |
2005-05-30 Roman Kennke <roman@kennke.org>
* javax/swing/JButton.java
(constructor): Set initial actionCommand equal to the buttons label.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | javax/swing/JButton.java | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2005-05-30 Roman Kennke <roman@kennke.org> + * javax/swing/JButton.java + (constructor): Set initial actionCommand equal to the buttons label. + +2005-05-30 Roman Kennke <roman@kennke.org> + * javax/swing/JList.java (getNextMatch): Implemented new method. (getCellBounds): Implemented new method. diff --git a/javax/swing/JButton.java b/javax/swing/JButton.java index df9f34839..eca53750e 100644 --- a/javax/swing/JButton.java +++ b/javax/swing/JButton.java @@ -79,6 +79,7 @@ public class JButton extends AbstractButton { super(text, icon); setModel(new DefaultButtonModel()); + setActionCommand(text); } public Object[] getSelectedObjects() |