Module jEdit

Class RolloverButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants
Direct Known Subclasses:
EnhancedButton

public class RolloverButton extends JButton
Class for buttons that implement rollovers If you wish to have rollovers on your buttons, use this class. Unlike the Swing rollover support, this class works outside of JToolBars, and does not require undocumented client property hacks or JDK1.4-specific API calls.

Note: You should not call setBorder() on your buttons, as they probably won't work properly.

Version:
$Id: RolloverButton.java 21831 2012-06-18 22:54:17Z ezust $
See Also:
  • Constructor Details

    • RolloverButton

      public RolloverButton()
      Setup the border (invisible initially)
    • RolloverButton

      public RolloverButton(Icon icon)
      Setup the border (invisible initially)
      Parameters:
      icon - the icon of this button
  • Method Details