Class ActiveBasicButtonListener

  • All Implemented Interfaces:
    java.awt.event.FocusListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.ChangeListener

    final class ActiveBasicButtonListener
    extends javax.swing.plaf.basic.BasicButtonListener
    Unlike its superclass this class sets the armed state when the mouse is over the button, where the 1.4 superclass sets the armed state only if the button is pressed.
    Version:
    $Revision: 1.8 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean mouseOver  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mouseEntered​(java.awt.event.MouseEvent e)  
      void mouseExited​(java.awt.event.MouseEvent e)  
      void mouseReleased​(java.awt.event.MouseEvent e)  
      • Methods inherited from class javax.swing.plaf.basic.BasicButtonListener

        checkOpacity, focusGained, focusLost, installKeyboardActions, mouseClicked, mouseDragged, mouseMoved, mousePressed, propertyChange, stateChanged, uninstallKeyboardActions
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mouseOver

        private boolean mouseOver
    • Constructor Detail

      • ActiveBasicButtonListener

        ActiveBasicButtonListener​(javax.swing.AbstractButton b)
    • Method Detail

      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
        Overrides:
        mouseEntered in class javax.swing.plaf.basic.BasicButtonListener
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent e)
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
        Overrides:
        mouseExited in class javax.swing.plaf.basic.BasicButtonListener
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
        Overrides:
        mouseReleased in class javax.swing.plaf.basic.BasicButtonListener