APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.swing.plaf.metal

pack-priv Class MetalTitlePane

extends JComponent
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
sun.swing.SwingUtilities2, sun.awt.SunToolkit, java.awt.*, java.awt.event.*, java.beans.*, javax.swing.*, javax.swing.border.*, javax.swing.event.InternalFrameEvent, javax.swing.plaf.*, javax.swing.plaf.basic.*, java.util.Locale, javax.accessibility.*

Class that manages a JLF awt.Window-descendant class's title bar.

This class assumes it will be created with a particular window decoration style, and that if the style changes, a new one will be created.

Author
Terry Kellerman
Since
1.4

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
MetalTitlePane.CloseAction

Actions used to close the Window.

private class
MetalTitlePane.IconifyAction

Actions used to iconfiy the Frame.

private class
MetalTitlePane.MaximizeAction

Actions used to restore the Frame.

private class
MetalTitlePane.PropertyChangeHandler

PropertyChangeListener installed on the Window.

private class
MetalTitlePane.RestoreAction

Actions used to restore the Frame.

private class
MetalTitlePane.SystemMenuBar

Class responsible for drawing the system menu.

private class
private class
MetalTitlePane.WindowHandler

WindowListener installed on the Window, updates the state as necessary.

Field Summary

Modifier and TypeField and Description
private Color
private MetalBumps
private Color
private Color
private Color
private Color
private int
buttonsWidth

Room remaining in title for bumps.

private Action
closeAction

Action used to close the Window.

private JButton
closeButton

Button used to maximize or restore the Frame.

private static final Border
private Action
iconifyAction

Action used to iconify the Frame.

private JButton
iconifyButton

Button used to maximize or restore the Frame.

private static final int
private static final int
private Color
private MetalBumps
private Color
private Color
private Action
maximizeAction

Action to restore the Frame size.

private Icon
maximizeIcon

Icon used for toggleButton when window is normal size.

private Icon
minimizeIcon

Icon used for toggleButton when window is maximized.

private PropertyChangeListener
propertyChangeListener

PropertyChangeListener added to the JRootPane.

private Action
restoreAction

Action to restore the Frame size.

private JRootPane
rootPane

JRootPane rendering for.

private MetalRootPaneUI
rootPaneUI

MetalRootPaneUI that created us.

private int
state

Buffered Frame.state property.

private Image
systemIcon

Image used for the system menu icon

private JButton
toggleButton

Button used to maximize or restore the Frame.

private Window
window

Window we're currently in.

private WindowListener
windowListener

Listens for changes in the state of the Window listener to update the state of the widgets.

Inherited from javax.swing.JComponent:
listenerListTOOL_TIP_TEXT_KEYuiUNDEFINED_CONDITIONWHEN_ANCESTOR_OF_FOCUSED_COMPONENTWHEN_FOCUSEDWHEN_IN_FOCUSED_WINDOW

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
addMenuItems(JMenu menu)

Adds the necessary JMenuItems to the passed in menu.

public void
addNotify()

Overrides javax.swing.JComponent.addNotify.

Notifies this component that it now has a parent component.

private void
close()

Closes the Window.

private void
createActions()

Create the Actions that get associated with the buttons and menu items.

private void
createButtons()

Creates the Buttons that will be placed on the TitlePane.

private LayoutManager
createLayout()

Returns the LayoutManager that should be installed on the MetalTitlePane.

private JMenu
createMenu()

Returns the JMenu displaying the appropriate menu items for manipulating the Frame.

protected JMenuBar
createMenuBar()

Returns the JMenuBar displaying the appropriate system menu items.

private JButton
createTitleButton()

Returns a JButton appropriate for placement on the TitlePane.

private WindowListener
createWindowListener()

Returns the WindowListener to add to the Window.

private PropertyChangeListener
createWindowPropertyChangeListener()

Returns the PropertyChangeListener to install on the Window.

private void
determineColors()

Determines the Colors to draw with.

private Frame
getFrame()

Returns the Frame rendering in. This will return null if the JRootPane is not contained in a Frame.

public JRootPane
getRootPane()

Overrides javax.swing.JComponent.getRootPane.

Returns the JRootPane this was created for.

private String
getTitle()

Returns the String to display as the title.

private Window
getWindow()

Returns the Window the JRootPane is contained in. This will return null if there is no parent ancestor of the JRootPane.

private int
getWindowDecorationStyle()

Returns the decoration style of the JRootPane.

private void
iconify()

Iconifies the Frame.

private void
installDefaults()

Installs the fonts and necessary properties on the MetalTitlePane.

private void
installListeners()

Installs the necessary listeners.

private void
installSubcomponents()

Adds any sub-Components contained in the MetalTitlePane.

private void
maximize()

Maximizes the Frame.

public void
public void
removeNotify()

Overrides javax.swing.JComponent.removeNotify.

Notifies this component that it no longer has a parent component.

private void
restore()

Restores the Frame size.

private void
setActive(boolean isActive)

Updates state dependent upon the Window's active state.

private void
setState(int state)

Sets the state of the Window.

private void
setState(int state, boolean updateRegardless)

Sets the state of the window.

private void
uninstall()

Uninstalls the necessary state.

private void
uninstallDefaults()

Uninstalls any previously installed UI values.

private void
uninstallListeners()

Uninstalls the necessary listeners.

private void
updateSystemIcon()

Update the image used for the system icon

private void
updateToggleButton(Action action, Icon icon)

Updates the toggle button to contain the Icon icon, and Action action.

Inherited from javax.swing.JComponent:
addAncestorListeneraddVetoableChangeListenercomputeVisibleRectcontainscreateToolTipdisableenablefirePropertyChangefirePropertyChangefirePropertyChangefireVetoableChangegetActionForKeyStrokegetActionMapgetAlignmentXgetAlignmentYgetAncestorListenersgetAutoscrollsgetBaselinegetBaselineResizeBehaviorgetBordergetBoundsgetClientPropertygetComponentGraphicsgetComponentPopupMenugetConditionForKeyStrokegetDebugGraphicsOptionsgetDefaultLocalegetFontMetricsgetGraphicsgetHeightgetInheritsPopupMenugetInputMapgetInputMapgetInputVerifiergetInsetsgetInsetsgetListenersgetLocationgetMaximumSizegetMinimumSizegetNextFocusableComponentgetPopupLocationgetPreferredSizegetRegisteredKeyStrokesgetSizegetToolTipLocationgetToolTipTextgetToolTipTextgetTopLevelAncestorgetTransferHandlergetUIgetUIClassIDgetVerifyInputWhenFocusTargetgetVetoableChangeListenersgetVisibleRectgetWidthgetXgetYgrabFocushideisDoubleBufferedisLightweightComponentisManagingFocusisOpaqueisOptimizedDrawingEnabledisPaintingForPrintisPaintingOriginisPaintingTileisRequestFocusEnabledisValidateRootpaintpaintBorderpaintChildrenpaintImmediatelypaintImmediatelyparamStringprintprintAllprintBorderprintChildrenprintComponentprocessComponentKeyEventprocessKeyBindingprocessKeyEventprocessMouseEventprocessMouseMotionEventputClientPropertyregisterKeyboardActionregisterKeyboardActionremoveAncestorListenerremoveVetoableChangeListenerrepaintrepaintrequestDefaultFocusrequestFocusrequestFocusrequestFocusInWindowrequestFocusInWindowresetKeyboardActionsreshaperevalidatescrollRectToVisiblesetActionMapsetAlignmentXsetAlignmentYsetAutoscrollssetBackgroundsetBordersetComponentPopupMenusetDebugGraphicsOptionssetDefaultLocalesetDoubleBufferedsetEnabledsetFocusTraversalKeyssetFontsetForegroundsetInheritsPopupMenusetInputMapsetInputVerifiersetMaximumSizesetMinimumSizesetNextFocusableComponentsetOpaquesetPreferredSizesetRequestFocusEnabledsetToolTipTextsetTransferHandlersetUIsetVerifyInputWhenFocusTargetsetVisibleunregisterKeyboardActionupdateupdateUI

Field Detail

activeBackgroundback to summary
private Color activeBackground
activeBumpsback to summary
private MetalBumps activeBumps
activeBumpsHighlightback to summary
private Color activeBumpsHighlight
activeBumpsShadowback to summary
private Color activeBumpsShadow
activeForegroundback to summary
private Color activeForeground
activeShadowback to summary
private Color activeShadow
buttonsWidthback to summary
private int buttonsWidth

Room remaining in title for bumps.

closeActionback to summary
private Action closeAction

Action used to close the Window.

closeButtonback to summary
private JButton closeButton

Button used to maximize or restore the Frame.

handyEmptyBorderback to summary
private static final Border handyEmptyBorder
iconifyActionback to summary
private Action iconifyAction

Action used to iconify the Frame.

iconifyButtonback to summary
private JButton iconifyButton

Button used to maximize or restore the Frame.

IMAGE_HEIGHTback to summary
private static final int IMAGE_HEIGHT
IMAGE_WIDTHback to summary
private static final int IMAGE_WIDTH
inactiveBackgroundback to summary
private Color inactiveBackground
inactiveBumpsback to summary
private MetalBumps inactiveBumps
inactiveForegroundback to summary
private Color inactiveForeground
inactiveShadowback to summary
private Color inactiveShadow
maximizeActionback to summary
private Action maximizeAction

Action to restore the Frame size.

maximizeIconback to summary
private Icon maximizeIcon

Icon used for toggleButton when window is normal size.

minimizeIconback to summary
private Icon minimizeIcon

Icon used for toggleButton when window is maximized.

propertyChangeListenerback to summary
private PropertyChangeListener propertyChangeListener

PropertyChangeListener added to the JRootPane.

restoreActionback to summary
private Action restoreAction

Action to restore the Frame size.

rootPaneback to summary
private JRootPane rootPane

JRootPane rendering for.

rootPaneUIback to summary
private MetalRootPaneUI rootPaneUI

MetalRootPaneUI that created us.

stateback to summary
private int state

Buffered Frame.state property. As state isn't bound, this is kept to determine when to avoid updating widgets.

systemIconback to summary
private Image systemIcon

Image used for the system menu icon

toggleButtonback to summary
private JButton toggleButton

Button used to maximize or restore the Frame.

windowback to summary
private Window window

Window we're currently in.

windowListenerback to summary
private WindowListener windowListener

Listens for changes in the state of the Window listener to update the state of the widgets.

Constructor Detail

MetalTitlePaneback to summary
public MetalTitlePane(JRootPane root, MetalRootPaneUI ui)

Method Detail

addMenuItemsback to summary
private void addMenuItems(JMenu menu)

Adds the necessary JMenuItems to the passed in menu.

addNotifyback to summary
public void addNotify()

Overrides javax.swing.JComponent.addNotify.

Doc from javax.swing.JComponent.addNotify.

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.

closeback to summary
private void close()

Closes the Window.

createActionsback to summary
private void createActions()

Create the Actions that get associated with the buttons and menu items.

createButtonsback to summary
private void createButtons()

Creates the Buttons that will be placed on the TitlePane.

createLayoutback to summary
private LayoutManager createLayout()

Returns the LayoutManager that should be installed on the MetalTitlePane.

createMenuback to summary
private JMenu createMenu()

Returns the JMenu displaying the appropriate menu items for manipulating the Frame.

createMenuBarback to summary
protected JMenuBar createMenuBar()

Returns the JMenuBar displaying the appropriate system menu items.

createTitleButtonback to summary
private JButton createTitleButton()

Returns a JButton appropriate for placement on the TitlePane.

createWindowListenerback to summary
private WindowListener createWindowListener()

Returns the WindowListener to add to the Window.

createWindowPropertyChangeListenerback to summary
private PropertyChangeListener createWindowPropertyChangeListener()

Returns the PropertyChangeListener to install on the Window.

determineColorsback to summary
private void determineColors()

Determines the Colors to draw with.

getFrameback to summary
private Frame getFrame()

Returns the Frame rendering in. This will return null if the JRootPane is not contained in a Frame.

getRootPaneback to summary
public JRootPane getRootPane()

Overrides javax.swing.JComponent.getRootPane.

Returns the JRootPane this was created for.

getTitleback to summary
private String getTitle()

Returns the String to display as the title.

getWindowback to summary
private Window getWindow()

Returns the Window the JRootPane is contained in. This will return null if there is no parent ancestor of the JRootPane.

getWindowDecorationStyleback to summary
private int getWindowDecorationStyle()

Returns the decoration style of the JRootPane.

iconifyback to summary
private void iconify()

Iconifies the Frame.

installDefaultsback to summary
private void installDefaults()

Installs the fonts and necessary properties on the MetalTitlePane.

installListenersback to summary
private void installListeners()

Installs the necessary listeners.

installSubcomponentsback to summary
private void installSubcomponents()

Adds any sub-Components contained in the MetalTitlePane.

maximizeback to summary
private void maximize()

Maximizes the Frame.

paintComponentback to summary
public void paintComponent(Graphics g)

Overrides javax.swing.JComponent.paintComponent.

Renders the TitlePane.

removeNotifyback to summary
public void removeNotify()

Overrides javax.swing.JComponent.removeNotify.

Doc from javax.swing.JComponent.removeNotify.

Notifies this component that it no longer has a parent component. When this method is invoked, any KeyboardActions set up in the chain of parent components are removed. This method is called by the toolkit internally and should not be called directly by programs.

restoreback to summary
private void restore()

Restores the Frame size.

setActiveback to summary
private void setActive(boolean isActive)

Updates state dependent upon the Window's active state.

setStateback to summary
private void setState(int state)

Sets the state of the Window.

setStateback to summary
private void setState(int state, boolean updateRegardless)

Sets the state of the window. If updateRegardless is true and the state has not changed, this will update anyway.

uninstallback to summary
private void uninstall()

Uninstalls the necessary state.

uninstallDefaultsback to summary
private void uninstallDefaults()

Uninstalls any previously installed UI values.

uninstallListenersback to summary
private void uninstallListeners()

Uninstalls the necessary listeners.

updateSystemIconback to summary
private void updateSystemIcon()

Update the image used for the system icon

updateToggleButtonback to summary
private void updateToggleButton(Action action, Icon icon)

Updates the toggle button to contain the Icon icon, and Action action.

javax.swing.plaf.metal back to summary

private Class MetalTitlePane.CloseAction

extends AbstractAction
Class Inheritance
Annotations
@SuppressWarnings:serial

Actions used to close the Window.

Field Summary

Inherited from javax.swing.AbstractAction:
changeSupportenabled

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Inherited from javax.swing.AbstractAction:
addPropertyChangeListenerclonefirePropertyChangegetKeysgetPropertyChangeListenersgetValueisEnabledputValueremovePropertyChangeListenersetEnabled

Constructor Detail

CloseActionback to summary
public CloseAction()

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

javax.swing.plaf.metal back to summary

private Class MetalTitlePane.IconifyAction

extends AbstractAction
Class Inheritance
Annotations
@SuppressWarnings:serial

Actions used to iconfiy the Frame.

Field Summary

Inherited from javax.swing.AbstractAction:
changeSupportenabled

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Inherited from javax.swing.AbstractAction:
addPropertyChangeListenerclonefirePropertyChangegetKeysgetPropertyChangeListenersgetValueisEnabledputValueremovePropertyChangeListenersetEnabled

Constructor Detail

IconifyActionback to summary
public IconifyAction()

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

javax.swing.plaf.metal back to summary

private Class MetalTitlePane.MaximizeAction

extends AbstractAction
Class Inheritance
Annotations
@SuppressWarnings:serial

Actions used to restore the Frame.

Field Summary

Inherited from javax.swing.AbstractAction:
changeSupportenabled

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Inherited from javax.swing.AbstractAction:
addPropertyChangeListenerclonefirePropertyChangegetKeysgetPropertyChangeListenersgetValueisEnabledputValueremovePropertyChangeListenersetEnabled

Constructor Detail

MaximizeActionback to summary
public MaximizeAction()

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

javax.swing.plaf.metal back to summary

private Class MetalTitlePane.PropertyChangeHandler

extends Object
implements PropertyChangeListener
Class Inheritance
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener

PropertyChangeListener installed on the Window. Updates the necessary state as the state of the Window changes.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
propertyChange(PropertyChangeEvent pce)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PropertyChangeHandlerback to summary
private PropertyChangeHandler()

Method Detail

propertyChangeback to summary
public void propertyChange(PropertyChangeEvent pce)

Implements java.beans.PropertyChangeListener.propertyChange.

Doc from java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

javax.swing.plaf.metal back to summary

private Class MetalTitlePane.RestoreAction

extends AbstractAction
Class Inheritance
Annotations
@SuppressWarnings:serial

Actions used to restore the Frame.

Field Summary

Inherited from javax.swing.AbstractAction:
changeSupportenabled

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Inherited from javax.swing.AbstractAction:
addPropertyChangeListenerclonefirePropertyChangegetKeysgetPropertyChangeListenersgetValueisEnabledputValueremovePropertyChangeListenersetEnabled

Constructor Detail

RestoreActionback to summary
public RestoreAction()

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

javax.swing.plaf.metal back to summary

private Class MetalTitlePane.SystemMenuBar

extends JMenuBar
Class Inheritance
Annotations
@SuppressWarnings:serial

Class responsible for drawing the system menu. Looks up the image to draw from the Frame associated with the JRootPane.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Dimension
getMinimumSize()

Overrides javax.swing.JComponent.getMinimumSize.

If the minimum size has been set to a non-null value just returns it.

public Dimension
getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it.

public void
paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Invoked by Swing to draw components.

Inherited from javax.swing.JMenuBar:
addaddNotifygetAccessibleContextgetComponentgetComponentAtIndexgetComponentIndexgetHelpMenugetMargingetMenugetMenuCountgetSelectionModelgetSubElementsgetUIgetUIClassIDisBorderPaintedisSelectedmenuSelectionChangedpaintBorderparamStringprocessKeyBindingprocessKeyEventprocessMouseEventremoveNotifysetBorderPaintedsetHelpMenusetMarginsetSelectedsetSelectionModelsetUIupdateUI

Constructor Detail

SystemMenuBarback to summary
private SystemMenuBar()

Method Detail

getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides javax.swing.JComponent.getMinimumSize.

Doc from javax.swing.JComponent.getMinimumSize.

If the minimum size has been set to a non-null value just returns it. If the UI delegate's getMinimumSize method returns a non-null value then return that; otherwise defer to the component's layout manager.

getPreferredSizeback to summary
public Dimension getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

Doc from javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it. If the UI delegate's getPreferredSize method returns a non null value then return that; otherwise defer to the component's layout manager.

paintback to summary
public void paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Doc from javax.swing.JComponent.paint.

Invoked by Swing to draw components. Applications should not invoke paint directly, but should instead use the repaint method to schedule the component for redrawing.

This method actually delegates the work of painting to three protected methods: paintComponent, paintBorder, and paintChildren. They're called in the order listed to ensure that children appear on top of component itself. Generally speaking, the component and its children should not paint in the insets area allocated to the border. Subclasses can just override this method, as always. A subclass that just wants to specialize the UI (look and feel) delegate's paint method should just override paintComponent.

javax.swing.plaf.metal back to summary

private Class MetalTitlePane.TitlePaneLayout

extends Object
implements LayoutManager
Class Inheritance
All Implemented Interfaces
java.awt.LayoutManager

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
addLayoutComponent(String name, Component c)

Implements java.awt.LayoutManager.addLayoutComponent.

If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

private int
public void
layoutContainer(Container c)

Implements java.awt.LayoutManager.layoutContainer.

Lays out the specified container.

public Dimension
minimumLayoutSize(Container c)

Implements java.awt.LayoutManager.minimumLayoutSize.

Calculates the minimum size dimensions for the specified container, given the components it contains.

public Dimension
preferredLayoutSize(Container c)

Implements java.awt.LayoutManager.preferredLayoutSize.

Calculates the preferred size dimensions for the specified container, given the components it contains.

public void
removeLayoutComponent(Component c)

Implements java.awt.LayoutManager.removeLayoutComponent.

Removes the specified component from the layout.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TitlePaneLayoutback to summary
private TitlePaneLayout()

Method Detail

addLayoutComponentback to summary
public void addLayoutComponent(String name, Component c)

Implements java.awt.LayoutManager.addLayoutComponent.

Doc from java.awt.LayoutManager.addLayoutComponent.

If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

computeHeightback to summary
private int computeHeight()
layoutContainerback to summary
public void layoutContainer(Container c)

Implements java.awt.LayoutManager.layoutContainer.

Doc from java.awt.LayoutManager.layoutContainer.

Lays out the specified container.

minimumLayoutSizeback to summary
public Dimension minimumLayoutSize(Container c)

Implements java.awt.LayoutManager.minimumLayoutSize.

Doc from java.awt.LayoutManager.minimumLayoutSize.

Calculates the minimum size dimensions for the specified container, given the components it contains.

preferredLayoutSizeback to summary
public Dimension preferredLayoutSize(Container c)

Implements java.awt.LayoutManager.preferredLayoutSize.

Doc from java.awt.LayoutManager.preferredLayoutSize.

Calculates the preferred size dimensions for the specified container, given the components it contains.

removeLayoutComponentback to summary
public void removeLayoutComponent(Component c)

Implements java.awt.LayoutManager.removeLayoutComponent.

Doc from java.awt.LayoutManager.removeLayoutComponent.

Removes the specified component from the layout.

javax.swing.plaf.metal back to summary

private Class MetalTitlePane.WindowHandler

extends WindowAdapter
Class Inheritance

WindowListener installed on the Window, updates the state as necessary.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public void
Inherited from java.awt.event.WindowAdapter:
windowClosedwindowClosingwindowDeiconifiedwindowGainedFocuswindowIconifiedwindowLostFocuswindowOpenedwindowStateChanged

Constructor Detail

WindowHandlerback to summary
private WindowHandler()

Method Detail

windowActivatedback to summary
public void windowActivated(WindowEvent ev)

Overrides java.awt.event.WindowAdapter.windowActivated.

Implements java.awt.event.WindowListener.windowActivated.

Doc from java.awt.event.WindowAdapter.windowActivated.

Invoked when a window is activated.

windowDeactivatedback to summary
public void windowDeactivated(WindowEvent ev)

Overrides java.awt.event.WindowAdapter.windowDeactivated.

Implements java.awt.event.WindowListener.windowDeactivated.

Doc from java.awt.event.WindowAdapter.windowDeactivated.

Invoked when a window is de-activated.