Module java.desktop

Class BasicMenuUI

Direct Known Subclasses:
SynthMenuUI

public class BasicMenuUI extends BasicMenuItemUI
A default L&F implementation of MenuUI. This implementation is a "combined" view/controller.
  • Field Details

    • changeListener

      protected ChangeListener changeListener
      The instance of ChangeListener.
  • Constructor Details

    • BasicMenuUI

      public BasicMenuUI()
      Constructs a BasicMenuUI.
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent x)
      Constructs a new instance of BasicMenuUI.
      Parameters:
      x - a component
      Returns:
      a new instance of BasicMenuUI
    • createMenuListener

      protected MenuListener createMenuListener(JComponent c)
      Returns an instance of MenuListener.
      Parameters:
      c - a component
      Returns:
      an instance of MenuListener
    • createChangeListener

      protected ChangeListener createChangeListener(JComponent c)
      Returns an instance of ChangeListener.
      Parameters:
      c - a component
      Returns:
      an instance of ChangeListener
    • setupPostTimer

      protected void setupPostTimer(JMenu menu)
      Sets timer to the menu.
      Parameters:
      menu - an instance of JMenu.