Module java.desktop

Class BasicButtonListener

    • Constructor Detail

      • BasicButtonListener

        public BasicButtonListener​(AbstractButton b)
        Constructs a new instance of BasicButtonListener.
        Parameters:
        b - an abstract button
    • Method Detail

      • 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