Class StayOpenMenuItem

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

public class StayOpenMenuItem extends JMenuItem
An extension of JMenuItem that doesn't close the menu when selected.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • doClick

      public void doClick(int pressTime)
      Overridden to reopen the menu.
      Overrides:
      doClick in class AbstractButton
      Parameters:
      pressTime - the time to "hold down" the button, in milliseconds