Module java.desktop

Class MetalInternalFrameTitlePane

    • Field Detail

      • 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 Detail

      • MetalInternalFrameTitlePane

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

      • 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
      • 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