public class MetalInternalFrameTitlePane extends BasicInternalFrameTitlePane
Class that manages a JLF title bar
BasicInternalFrameTitlePane.CloseAction, BasicInternalFrameTitlePane.IconifyAction, BasicInternalFrameTitlePane.MaximizeAction, BasicInternalFrameTitlePane.MoveAction, BasicInternalFrameTitlePane.PropertyChangeHandler, BasicInternalFrameTitlePane.RestoreAction, BasicInternalFrameTitlePane.SizeAction, BasicInternalFrameTitlePane.SystemMenuBar, BasicInternalFrameTitlePane.TitlePaneLayout JComponent.AccessibleJComponent Container.AccessibleAWTContainer Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy protected boolean isPalette
protected Icon paletteCloseIcon
protected int paletteTitleHeight
public MetalInternalFrameTitlePane(JInternalFrame f)
public void addNotify()
Description copied from class: JComponent
Notifies this component that it now has a parent component. When this method is invoked, the chain of parent components is set up with KeyboardAction event listeners. This method is called by the toolkit internally and should not be called directly by programs.
addNotify in class JComponent
JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)protected void installDefaults()
installDefaults in class BasicInternalFrameTitlePane
protected void uninstallDefaults()
uninstallDefaults in class BasicInternalFrameTitlePane
protected void createButtons()
createButtons in class BasicInternalFrameTitlePane
protected void assembleSystemMenu()
Override the parent's method to do nothing. Metal frames do not have system menus.
assembleSystemMenu in class BasicInternalFrameTitlePane
protected void addSystemMenuItems(JMenu systemMenu)
Override the parent's method to do nothing. Metal frames do not have system menus.
addSystemMenuItems in class BasicInternalFrameTitlePane
protected void showSystemMenu()
Override the parent's method to do nothing. Metal frames do not have system menus.
showSystemMenu in class BasicInternalFrameTitlePane
protected void addSubComponents()
Override the parent's method avoid creating a menu bar. Metal frames do not have system menus.
addSubComponents in class BasicInternalFrameTitlePane
protected PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener in class BasicInternalFrameTitlePane
protected LayoutManager createLayout()
createLayout in class BasicInternalFrameTitlePane
public void paintPalette(Graphics g)
public void paintComponent(Graphics g)
Description copied from class: JComponent
Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).
If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoker super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in a non-opaque color. If you do not honor the opaque property you will likely see visual artifacts.
The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.
paintComponent in class BasicInternalFrameTitlePane
g - the Graphics object to protectJComponent.paint(java.awt.Graphics), ComponentUI
public void setPalette(boolean b)
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.