Module java.desktop

Class MetalInternalFrameTitlePane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class MetalInternalFrameTitlePane extends BasicInternalFrameTitlePane
Class that manages a JLF title bar
Since:
1.3
  • Field Details

    • isPalette

      protected boolean isPalette
      The value isPalette
    • paletteCloseIcon

      protected Icon paletteCloseIcon
      The palette close icon.
    • paletteTitleHeight

      protected int paletteTitleHeight
      The height of the palette title.
  • Constructor Details

    • MetalInternalFrameTitlePane

      public MetalInternalFrameTitlePane(JInternalFrame f)
      Constructs a new instance of MetalInternalFrameTitlePane
      Parameters:
      f - an instance of JInternalFrame
  • Method Details

    • assembleSystemMenu

      protected void assembleSystemMenu()
      Override the parent's method to do nothing. Metal frames do not have system menus.
      Overrides:
      assembleSystemMenu in class BasicInternalFrameTitlePane
    • addSystemMenuItems

      protected void addSystemMenuItems(JMenu systemMenu)
      Override the parent's method to do nothing. Metal frames do not have system menus.
      Overrides:
      addSystemMenuItems in class BasicInternalFrameTitlePane
      Parameters:
      systemMenu - an instance of JMenu
    • showSystemMenu

      protected void showSystemMenu()
      Override the parent's method to do nothing. Metal frames do not have system menus.
      Overrides:
      showSystemMenu in class BasicInternalFrameTitlePane
    • addSubComponents

      protected void addSubComponents()
      Override the parent's method avoid creating a menu bar. Metal frames do not have system menus.
      Overrides:
      addSubComponents in class BasicInternalFrameTitlePane
    • paintPalette

      public void paintPalette(Graphics g)
      Paints palette.
      Parameters:
      g - a instance of Graphics
    • setPalette

      public void setPalette(boolean b)
      If b is true, sets palette icons.
      Parameters:
      b - if true, sets palette icons