Class WindowsTitlePane

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.github.weisj.darklaf.platform.decorations.CustomTitlePane
com.github.weisj.darklaf.platform.windows.ui.WindowsTitlePane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class WindowsTitlePane extends com.github.weisj.darklaf.platform.decorations.CustomTitlePane
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • WindowsTitlePane

      public WindowsTitlePane(JRootPane root, int decorationStyle, Window window)
  • Method Details

    • uninstall

      public void uninstall(boolean removeDecorations)
      Specified by:
      uninstall in class com.github.weisj.darklaf.platform.decorations.CustomTitlePane
    • uninstallDecorations

      protected void uninstallDecorations(boolean removeDecorations)
    • install

      public void install()
      Specified by:
      install in class com.github.weisj.darklaf.platform.decorations.CustomTitlePane
    • setDecorationsStyle

      public void setDecorationsStyle(int style)
      Overrides:
      setDecorationsStyle in class com.github.weisj.darklaf.platform.decorations.CustomTitlePane
    • addMenuBar

      protected void addMenuBar(JMenuBar menuBar)
    • removeMenuBar

      protected void removeMenuBar()
    • createWindowIcon

      protected JButton createWindowIcon()
    • setButtonActive

      protected void setButtonActive(JButton button, boolean active)
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • isDrawBorder

      protected boolean isDrawBorder()
    • getRootPane

      public JRootPane getRootPane()
      Overrides:
      getRootPane in class JComponent
    • updateResizeBehaviour

      protected void updateResizeBehaviour()
    • isResizable

      protected boolean isResizable()
    • isLeftToRight

      protected boolean isLeftToRight(Window window)
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent
    • updateDragArea

      protected void updateDragArea(GraphicsConfiguration gc)