W3cubDocs

/OpenJDK 8 GUI

Class MetalInternalFrameTitlePane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
public class MetalInternalFrameTitlePane
extends BasicInternalFrameTitlePane

Class that manages a JLF title bar

Since:
1.3

Nested Classes

Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane

BasicInternalFrameTitlePane.CloseAction, BasicInternalFrameTitlePane.IconifyAction, BasicInternalFrameTitlePane.MaximizeAction, BasicInternalFrameTitlePane.MoveAction, BasicInternalFrameTitlePane.PropertyChangeHandler, BasicInternalFrameTitlePane.RestoreAction, BasicInternalFrameTitlePane.SizeAction, BasicInternalFrameTitlePane.SystemMenuBar, BasicInternalFrameTitlePane.TitlePaneLayout

Nested classes/interfaces inherited from class javax.swing.JComponent

JComponent.AccessibleJComponent

Nested classes/interfaces inherited from class java.awt.Container

Container.AccessibleAWTContainer

Nested classes/interfaces inherited from class java.awt.Component

Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy

Fields

isPalette

protected boolean isPalette

paletteCloseIcon

protected Icon paletteCloseIcon

paletteTitleHeight

protected int paletteTitleHeight

Constructors

MetalInternalFrameTitlePane

public MetalInternalFrameTitlePane(JInternalFrame f)

Methods

addNotify

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.

Overrides:
addNotify in class JComponent
See Also:
JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)

installDefaults

protected void installDefaults()
Overrides:
installDefaults in class BasicInternalFrameTitlePane

uninstallDefaults

protected void uninstallDefaults()
Overrides:
uninstallDefaults in class BasicInternalFrameTitlePane

createButtons

protected void createButtons()
Overrides:
createButtons in class BasicInternalFrameTitlePane

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

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

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()
Overrides:
createPropertyChangeListener in class BasicInternalFrameTitlePane

createLayout

protected LayoutManager createLayout()
Overrides:
createLayout in class BasicInternalFrameTitlePane

paintPalette

public void paintPalette(Graphics g)

paintComponent

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.

Overrides:
paintComponent in class BasicInternalFrameTitlePane
Parameters:
g - the Graphics object to protect
See Also:
JComponent.paint(java.awt.Graphics), ComponentUI

setPalette

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.