Index: javax/swing/plaf/basic/BasicButtonListener.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicButtonListener.java,v retrieving revision 1.6 diff -u -r1.6 BasicButtonListener.java --- javax/swing/plaf/basic/BasicButtonListener.java 23 Sep 2004 15:03:21 -0000 1.6 +++ javax/swing/plaf/basic/BasicButtonListener.java 23 Dec 2004 10:34:06 -0000 @@ -1,4 +1,4 @@ -/* BasicButtonListener.java +/* BasicButtonListener.java -- Copyright (C) 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,6 +35,7 @@ obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package javax.swing.plaf.basic; import java.awt.event.ActionEvent; @@ -58,12 +59,19 @@ implements MouseListener, MouseMotionListener, FocusListener, ChangeListener, PropertyChangeListener { + public BasicButtonListener(AbstractButton b) + { + // Do nothing here. + } + public void propertyChange(PropertyChangeEvent e) { } + protected void checkOpacity(AbstractButton b) { } + public void focusGained(FocusEvent e) { if (e.getSource() instanceof AbstractButton) @@ -86,6 +94,7 @@ button.repaint(); } } + public void installKeyboardActions(JComponent c) { c.getActionMap().put("pressed", @@ -114,20 +123,25 @@ } }); } + public void uninstallKeyboardActions(JComponent c) { c.getActionMap().put("pressed", null); c.getActionMap().put("released", null); } + public void stateChanged(ChangeEvent e) { } + public void mouseMoved(MouseEvent e) { } + public void mouseDragged(MouseEvent e) { } + public void mouseClicked(MouseEvent e) { } @@ -152,7 +166,6 @@ } } - /** * Accept a mouse release event and set the button's * "pressed" property to true, if the model @@ -175,7 +188,6 @@ } } - /** * Accept a mouse enter event and set the button's "rollover" property to * true, if the button's "rolloverEnabled" property is Index: javax/swing/plaf/basic/BasicButtonUI.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicButtonUI.java,v retrieving revision 1.15 diff -u -r1.15 BasicButtonUI.java --- javax/swing/plaf/basic/BasicButtonUI.java 22 Oct 2004 17:46:47 -0000 1.15 +++ javax/swing/plaf/basic/BasicButtonUI.java 23 Dec 2004 10:34:06 -0000 @@ -133,7 +133,7 @@ protected BasicButtonListener createButtonListener(AbstractButton b) { - return new BasicButtonListener(); + return new BasicButtonListener(b); } public void installListeners(AbstractButton b)