Package com.formdev.flatlaf.ui
Class FlatMenuBarUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.MenuBarUI
-
- javax.swing.plaf.basic.BasicMenuBarUI
-
- com.formdev.flatlaf.ui.FlatMenuBarUI
-
public class FlatMenuBarUI extends BasicMenuBarUI
Provides the Flat LaF UI delegate forJMenuBar.- UiDefault:
- MenuBar.font Font, MenuBar.background Color, MenuBar.foreground Color, MenuBar.border Border, TitlePane.unifiedBackground boolean
-
-
Field Summary
-
Fields inherited from class javax.swing.plaf.basic.BasicMenuBarUI
changeListener, containerListener, menuBar
-
-
Constructor Summary
Constructors Constructor Description FlatMenuBarUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUIcreateUI(JComponent c)protected ColorgetBackground(JComponent c)protected voidinstallDefaults()protected voidinstallKeyboardActions()voidupdate(Graphics g, JComponent c)-
Methods inherited from class javax.swing.plaf.basic.BasicMenuBarUI
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installListeners, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, paint
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classBasicMenuBarUI
-
installKeyboardActions
protected void installKeyboardActions()
- Overrides:
installKeyboardActionsin classBasicMenuBarUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
updatein classComponentUI
-
getBackground
protected Color getBackground(JComponent c)
-
-