Module java.desktop

Class BasicButtonListener

java.lang.Object
javax.swing.plaf.basic.BasicButtonListener
All Implemented Interfaces:
FocusListener, MouseListener, MouseMotionListener, PropertyChangeListener, EventListener, ChangeListener

public class BasicButtonListener
extends Object
implements MouseListener, MouseMotionListener, FocusListener, ChangeListener, PropertyChangeListener
Button Listener
  • Constructor Details

  • Method Details

    • 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