All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.JDesktopPane

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.swing.JComponent
                            |
                            +----java.awt.swing.JLayeredPane
                                    |
                                    +----java.awt.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 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 getAccessibleRole()
Get the role of this object.
 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.

 o getAccessibleRole
public AccessibleRole getAccessibleRole()
Get the role of this object.

Returns:
an instance of AccessibleRole describing the role of the object
Overrides:
getAccessibleRole in class JLayeredPane
See Also:
AccessibleRole

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature