Class FlatTitlePane

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable

    public class FlatTitlePane
    extends JComponent
    Provides the Flat LaF title bar.
    See Also:
    Serialized Form
    UiDefault:
    TitlePane.font Font, TitlePane.background Color, TitlePane.inactiveBackground Color, TitlePane.foreground Color, TitlePane.inactiveForeground Color, TitlePane.embeddedForeground Color, TitlePane.borderColor Color optional, TitlePane.unifiedBackground boolean, TitlePane.showIcon boolean, TitlePane.showIconInDialogs boolean, TitlePane.noIconLeftGap int, TitlePane.iconSize Dimension, TitlePane.iconMargins Insets, TitlePane.titleMargins Insets, TitlePane.menuBarEmbedded boolean, TitlePane.titleMinimumWidth int, TitlePane.buttonMinimumWidth int, TitlePane.buttonMaximizedHeight int, TitlePane.centerTitle boolean, TitlePane.centerTitleIfMenuBarEmbedded boolean, TitlePane.showIconBesideTitle boolean, TitlePane.menuBarTitleGap int, TitlePane.menuBarResizeHeight int, TitlePane.closeIcon Icon, TitlePane.iconifyIcon Icon, TitlePane.maximizeIcon Icon, TitlePane.restoreIcon Icon
    • Field Detail

      • titleFont

        protected final Font titleFont
        Since:
        2.5
      • activeBackground

        protected final Color activeBackground
      • inactiveBackground

        protected final Color inactiveBackground
      • activeForeground

        protected final Color activeForeground
      • inactiveForeground

        protected final Color inactiveForeground
      • embeddedForeground

        protected final Color embeddedForeground
      • borderColor

        protected final Color borderColor
      • showIcon

        protected final boolean showIcon
        Since:
        2
      • showIconInDialogs

        protected final boolean showIconInDialogs
        Since:
        2.5
      • noIconLeftGap

        protected final int noIconLeftGap
        Since:
        2
      • iconSize

        protected final Dimension iconSize
      • titleMinimumWidth

        protected final int titleMinimumWidth
        Since:
        2.4
      • buttonMinimumWidth

        protected final int buttonMinimumWidth
        Since:
        2.4
      • buttonMaximizedHeight

        protected final int buttonMaximizedHeight
      • centerTitle

        protected final boolean centerTitle
      • centerTitleIfMenuBarEmbedded

        protected final boolean centerTitleIfMenuBarEmbedded
      • showIconBesideTitle

        protected final boolean showIconBesideTitle
        Since:
        2.4
      • menuBarTitleGap

        protected final int menuBarTitleGap
      • menuBarTitleMinimumGap

        protected final int menuBarTitleMinimumGap
        Since:
        2.4
      • menuBarResizeHeight

        protected final int menuBarResizeHeight
        Since:
        2.4
      • rootPane

        protected final JRootPane rootPane
      • leftPanel

        protected JPanel leftPanel
      • iconLabel

        protected JLabel iconLabel
      • menuBarPlaceholder

        protected JComponent menuBarPlaceholder
      • titleLabel

        protected JLabel titleLabel
      • buttonPanel

        protected JPanel buttonPanel
      • iconifyButton

        protected JButton iconifyButton
      • maximizeButton

        protected JButton maximizeButton
      • restoreButton

        protected JButton restoreButton
      • closeButton

        protected JButton closeButton
      • window

        protected Window window
    • Constructor Detail

      • FlatTitlePane

        public FlatTitlePane​(JRootPane rootPane)
    • Method Detail

      • addSubComponents

        protected void addSubComponents()
      • createButtons

        protected void createButtons()
      • activeChanged

        protected void activeChanged​(boolean active)
      • frameStateChanged

        protected void frameStateChanged()
      • updateVisibility

        protected void updateVisibility()
        Since:
        3
      • updateIcon

        protected void updateIcon()
      • getWindowTitle

        protected String getWindowTitle()
      • installWindowListeners

        protected void installWindowListeners()
      • uninstallWindowListeners

        protected void uninstallWindowListeners()
      • hasVisibleEmbeddedMenuBar

        protected boolean hasVisibleEmbeddedMenuBar​(JMenuBar menuBar)
        Returns whether this title pane currently has a visible and embedded menubar.
      • isMenuBarEmbedded

        protected boolean isMenuBarEmbedded()
        Returns whether the menubar should be embedded into the title pane.
      • getMenuBarBounds

        protected Rectangle getMenuBarBounds()
      • titleBarColorsChanged

        protected void titleBarColorsChanged()
      • menuBarChanged

        protected void menuBarChanged()
      • menuBarLayouted

        protected void menuBarLayouted()
      • repaintWindowBorder

        protected void repaintWindowBorder()
      • iconify

        protected void iconify()
        Iconifies the window.
      • isWindowMaximized

        protected boolean isWindowMaximized()
        Since:
        2.4
      • maximize

        protected void maximize()
        Maximizes the window.
      • updateMaximizedBounds

        protected void updateMaximizedBounds()
      • restore

        protected void restore()
        Restores the window size.
      • close

        protected void close()
        Closes the window.
      • hasNativeCustomDecoration

        protected boolean hasNativeCustomDecoration()
        Returns whether windows uses native window border and has custom decorations enabled.
      • updateNativeTitleBarHeightAndHitTestSpotsLater

        protected void updateNativeTitleBarHeightAndHitTestSpotsLater()
      • updateNativeTitleBarHeightAndHitTestSpots

        protected void updateNativeTitleBarHeightAndHitTestSpots()