APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.tools.jconsole

public Class MaximizableInternalFrame

extends JInternalFrame
Class Inheritance
Known Direct Subclasses
sun.tools.jconsole.VMInternalFrame
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, java.beans.*, java.lang.reflect.*, javax.swing.*, javax.swing.border.*, javax.swing.plaf.basic.*

This class is a temporary workaround for bug 4834918: Win L&F: JInternalFrame should merge with JMenuBar when maximized. It is not a general solution, but intended for use within the limited scope of JConsole when running with XP/Vista styles.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private Method
private boolean
private JFrame
private String
private Border
private PropertyChangeListener
private Method
private JComponent
private static Object
private static Object
private static Object
private static Object
private static Object
private static Object
Inherited from javax.swing.JInternalFrame:
closableCONTENT_PANE_PROPERTYdesktopIconFRAME_ICON_PROPERTYframeIconGLASS_PANE_PROPERTYiconableIS_CLOSED_PROPERTYIS_ICON_PROPERTYIS_MAXIMUM_PROPERTYIS_SELECTED_PROPERTYisClosedisIconisMaximumisSelectedLAYERED_PANE_PROPERTYmaximizableMENU_BAR_PROPERTYresizableROOT_PANE_PROPERTYrootPanerootPaneCheckingEnabledtitleTITLE_PROPERTY

Constructor Summary

AccessConstructor and Description
public
MaximizableInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)

Method Summary

Modifier and TypeMethod and Description
private JFrame
private JMenuBar
private void
init()

public void
setTitle(String title)

Overrides javax.swing.JInternalFrame.setTitle.

Sets the JInternalFrame title.

private void
private void
public void
updateUI()

Overrides javax.swing.JInternalFrame.updateUI.

Notification from the UIManager that the look and feel has changed.

Inherited from javax.swing.JInternalFrame:
addImpladdInternalFrameListenercreateRootPanedisposedoDefaultCloseActionfireInternalFrameEventgetAccessibleContextgetContentPanegetDefaultCloseOperationgetDesktopIcongetDesktopPanegetFocusCycleRootAncestorgetFocusOwnergetFrameIcongetGlassPanegetInternalFrameListenersgetJMenuBargetLastCursorgetLayergetLayeredPanegetMenuBargetMostRecentFocusOwnergetNormalBoundsgetRootPanegetTitlegetUIgetUIClassIDgetWarningStringhideisClosableisClosedisFocusCycleRootisIconisIconifiableisMaximizableisMaximumisResizableisRootPaneCheckingEnabledisSelectedmoveToBackmoveToFrontpackpaintComponentparamStringremoveremoveInternalFrameListenerreshaperestoreSubcomponentFocussetClosablesetClosedsetContentPanesetCursorsetDefaultCloseOperationsetDesktopIconsetFocusCycleRootsetFrameIconsetGlassPanesetIconsetIconifiablesetJMenuBarsetLayersetLayersetLayeredPanesetLayoutsetMaximizablesetMaximumsetMenuBarsetNormalBoundssetResizablesetRootPanesetRootPaneCheckingEnabledsetSelectedsetUIshowtoBacktoFront

Field Detail

enableActionsback to summary
private Method enableActions
isXPback to summary
private boolean isXP
mainFrameback to summary
private JFrame mainFrame
mainTitleback to summary
private String mainTitle
normalBorderback to summary
private Border normalBorder
pclback to summary
private PropertyChangeListener pcl
setButtonIconsback to summary
private Method setButtonIcons
titlePaneback to summary
private JComponent titlePane
WP_CLOSEBUTTONback to summary
private static Object WP_CLOSEBUTTON
WP_MDICLOSEBUTTONback to summary
private static Object WP_MDICLOSEBUTTON
WP_MDIMINBUTTONback to summary
private static Object WP_MDIMINBUTTON
WP_MDIRESTOREBUTTONback to summary
private static Object WP_MDIRESTOREBUTTON
WP_MINBUTTONback to summary
private static Object WP_MINBUTTON
WP_RESTOREBUTTONback to summary
private static Object WP_RESTOREBUTTON

Constructor Detail

MaximizableInternalFrameback to summary
public MaximizableInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)

Method Detail

getMainFrameback to summary
private JFrame getMainFrame()
getMainMenuBarback to summary
private JMenuBar getMainMenuBar()
initback to summary
private void init()
setTitleback to summary
public void setTitle(String title)

Overrides javax.swing.JInternalFrame.setTitle.

Doc from javax.swing.JInternalFrame.setTitle.

Sets the JInternalFrame title. title may have a null value.

updateButtonStatesback to summary
private void updateButtonStates()
updateFrameback to summary
private void updateFrame()
updateUIback to summary
public void updateUI()

Overrides javax.swing.JInternalFrame.updateUI.

Doc from javax.swing.JInternalFrame.updateUI.

Notification from the UIManager that the look and feel has changed. Replaces the current UI object with the latest version from the UIManager.

sun.tools.jconsole back to summary

private Class MaximizableInternalFrame.FixedMenuBarLayout

extends BoxLayout
Class Inheritance

Field Summary

Inherited from javax.swing.BoxLayout:
LINE_AXISPAGE_AXISX_AXISY_AXIS

Constructor Summary

AccessConstructor and Description
public
FixedMenuBarLayout(Container target, int axis)

Method Summary

Modifier and TypeMethod and Description
public void
layoutContainer(Container target)

Overrides javax.swing.BoxLayout.layoutContainer.

Implements java.awt.LayoutManager.layoutContainer.

Called by the AWT when the specified container needs to be laid out.

Inherited from javax.swing.BoxLayout:
addLayoutComponentaddLayoutComponentgetAxisgetLayoutAlignmentXgetLayoutAlignmentYgetTargetinvalidateLayoutmaximumLayoutSizeminimumLayoutSizepreferredLayoutSizeremoveLayoutComponent

Constructor Detail

FixedMenuBarLayoutback to summary
public FixedMenuBarLayout(Container target, int axis)

Method Detail

layoutContainerback to summary
public void layoutContainer(Container target)

Overrides javax.swing.BoxLayout.layoutContainer.

Implements java.awt.LayoutManager.layoutContainer.

Doc from javax.swing.BoxLayout.layoutContainer.

Called by the AWT when the specified container needs to be laid out.

sun.tools.jconsole back to summary

private Class MaximizableInternalFrame.MDIButtonIcon

extends Object
implements Icon
Class Inheritance
All Implemented Interfaces
javax.swing.Icon

Field Summary

Modifier and TypeField and Description
pack-priv Field
pack-priv Icon

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Returns the icon's height.

public int
getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Returns the icon's width.

public void
paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Draw the icon at the specified location.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

partback to summary
pack-priv Field part
windowsIconback to summary
pack-priv Icon windowsIcon

Constructor Detail

MDIButtonIconback to summary
pack-priv MDIButtonIcon(Icon icon)

Method Detail

getIconHeightback to summary
public int getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Doc from javax.swing.Icon.getIconHeight.

Returns the icon's height.

getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

paintIconback to summary
public void paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Doc from javax.swing.Icon.paintIcon.

Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.