Class SubMenuUsabilityHelper

java.lang.Object
com.formdev.flatlaf.SubMenuUsabilityHelper
All Implemented Interfaces:
EventListener, ChangeListener

class SubMenuUsabilityHelper extends Object implements ChangeListener
Improves usability of submenus by using a safe triangle to avoid that the submenu closes while the user moves the mouse to it.
  • Field Details

  • Constructor Details

    • SubMenuUsabilityHelper

      SubMenuUsabilityHelper()
  • Method Details

    • install

      static boolean install()
    • uninstall

      static void uninstall()
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
    • uninstallEventQueue

      private void uninstallEventQueue()
    • findSubMenu

      private int findSubMenu(MenuElement[] path)
    • createSafeTriangle

      private Polygon createSafeTriangle()