All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JDesktopPane

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JLayeredPane
                                   |
                                   +----com.sun.java.swing.JDesktopPane

public class JDesktopPane
extends JLayeredPane
implements Accessible
This JLayeredPane subclass keeps a reference to a DesktopManager object. This class in normally used as the parent of JInternalFrames to provide a pluggable DesktopManager object to the JInternalFrames.

The installUI of the L&F specific implementation is responsible for setting the desktopManager variable appropriately.

When the parent of a JInternalFrame is a JDesktopPane, it should delegate most of its behavior to the desktopManager (closing, resizing, etc).

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.

See Also:
JInternalFrame, JDesktopIcon, DesktopManager

Constructor Index

 o JDesktopPane()

Method Index

 o getAccessibleContext()
Get the AccessibleContext associated with this JComponent
 o getAllFrames()
Returns all JInternalFrames currently displayed in the desktop.
 o getAllFramesInLayer(int)
Returns all JInternalFrames currently displayed in the desktop that are in layer.
 o getDesktopManager()
 o getUI()
 o getUIClassID()
 o isOpaque()
Returns true if this component is completely opaque.
 o setDesktopManager(DesktopManager)
 o setUI(DesktopPaneUI)
 o updateUI()
Called to replace the UI with the latest version from the default UIFactory.

Constructors

 o JDesktopPane
 public JDesktopPane()

Methods

 o getUI
 public DesktopPaneUI getUI()
 o setUI
 public void setUI(DesktopPaneUI ui)
 o getDesktopManager
 public DesktopManager getDesktopManager()
 o setDesktopManager
 public void setDesktopManager(DesktopManager d)
 o updateUI
 public void updateUI()
Called to replace the UI with the latest version from the default UIFactory.

Overrides:
updateUI in class JComponent
 o getUIClassID
 public String getUIClassID()
Returns:
"DesktopPaneUI"
Overrides:
getUIClassID in class JComponent
See Also:
getUIClassID, getUI
 o getAllFrames
 public JInternalFrame[] getAllFrames()
Returns all JInternalFrames currently displayed in the desktop. This will return iconified frames as well.

 o getAllFramesInLayer
 public JInternalFrame[] getAllFramesInLayer(int layer)
Returns all JInternalFrames currently displayed in the desktop that are in layer. This will return iconified frames as well.

 o isOpaque
 public boolean isOpaque()
Returns true if this component is completely opaque.

Overrides:
isOpaque in class JComponent
 o getAccessibleContext
 public AccessibleContext getAccessibleContext()
Get the AccessibleContext associated with this JComponent

Returns:
the AccessibleContext of this JComponent
Overrides:
getAccessibleContext in class JLayeredPane

All Packages  Class Hierarchy  This Package  Previous  Next  Index