Module jEdit

Class RolloverToggleButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class RolloverToggleButton extends JToggleButton
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

    • RolloverToggleButton

      public RolloverToggleButton()
      Setup the border
    • RolloverToggleButton

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