Class AutoFoldingMenu

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

public class AutoFoldingMenu extends JMenu
Auto-folding menu. It overrides the add(JMenuItem) method only.

Works, but it's not pretty.

See Also:
  • Field Details

    • DEFAULT_MENU_SIZE

      public static final int DEFAULT_MENU_SIZE
      The Constant DEFAULT_MENU_SIZE.
      See Also:
  • Constructor Details

    • AutoFoldingMenu

      public AutoFoldingMenu(String title, int max)
      Instantiates a new auto folding menu.
      Parameters:
      title - the title
      max - the max
    • AutoFoldingMenu

      public AutoFoldingMenu(String title)
      Instantiates a new auto folding menu.
      Parameters:
      title - the title
  • Method Details