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
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 and/or JDesktopIcon is a JDesktopPane, they should delegate most of their behaviors to the desktopManager (closing, resizing, etc).

See Also:
JInternalFrame, JDesktopIcon, DesktopManager

Constructor Index

 o JDesktopPane()

Method Index

 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 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.


All Packages  Class Hierarchy  This Package  Previous  Next  Index