Class BasicButtonListener

All Implemented Interfaces:
FocusListener, MouseListener, MouseMotionListener, PropertyChangeListener, EventListener, ChangeListener
public class BasicButtonListener
extends Object
implements MouseListener, MouseMotionListener, FocusListener, ChangeListener, PropertyChangeListener

Button Listener

Constructors

Constructor Description
BasicButtonListener​(AbstractButton b)

Constructs a new instance of BasicButtonListener.

Methods

Modifier and Type Method Description
protected void checkOpacity​(AbstractButton b)

Checks the opacity of the AbstractButton.

void installKeyboardActions​(JComponent c)

Register default key actions: pressing space to "click" a button and registering the keyboard mnemonic (if any).

void uninstallKeyboardActions​(JComponent c)

Unregister default key actions.

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods declared in interface javax.swing.event.ChangeListener

stateChanged

Methods declared in interface java.awt.event.FocusListener

focusGained, focusLost

Methods declared in interface java.awt.event.MouseListener

mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased

Methods declared in interface java.awt.event.MouseMotionListener

mouseDragged, mouseMoved

Methods declared in interface java.beans.PropertyChangeListener

propertyChange

Constructors

BasicButtonListener

public BasicButtonListener(AbstractButton b)

Constructs a new instance of BasicButtonListener.

Parameters:
b - an abstract button

Methods

checkOpacity

protected void checkOpacity(AbstractButton b)

Checks the opacity of the AbstractButton.

Parameters:
b - an abstract button

installKeyboardActions

public void installKeyboardActions(JComponent c)

Register default key actions: pressing space to "click" a button and registering the keyboard mnemonic (if any).

Parameters:
c - a component

uninstallKeyboardActions

public void uninstallKeyboardActions(JComponent c)

Unregister default key actions.

Parameters:
c - a component

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/plaf/basic/BasicButtonListener.html