1 |
/* BasicButtonUI.java |
/* BasicButtonUI.java -- |
2 |
Copyright (C) 2002, 2004 Free Software Foundation, Inc. |
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
38 |
|
|
39 |
package javax.swing.plaf.basic; |
package javax.swing.plaf.basic; |
40 |
|
|
41 |
import java.awt.Color; |
import java.awt.Color; |
137 |
return new BasicButtonListener(b); |
return new BasicButtonListener(b); |
138 |
} |
} |
139 |
|
|
140 |
public void installListeners(AbstractButton b) |
protected void installListeners(AbstractButton b) |
141 |
{ |
{ |
142 |
listener = createButtonListener(b); |
listener = createButtonListener(b); |
143 |
b.addChangeListener(listener); |
b.addChangeListener(listener); |
147 |
b.addMouseMotionListener(listener); |
b.addMouseMotionListener(listener); |
148 |
} |
} |
149 |
|
|
150 |
public void uninstallListeners(AbstractButton b) |
protected void uninstallListeners(AbstractButton b) |
151 |
{ |
{ |
152 |
b.removeChangeListener(listener); |
b.removeChangeListener(listener); |
153 |
b.removePropertyChangeListener(listener); |
b.removePropertyChangeListener(listener); |