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
-
JDesktopPane()
-
-
getAccessibleContext()
- Get the AccessibleContext associated with this JComponent
-
getAllFrames()
- Returns all JInternalFrames currently displayed in the
desktop.
-
getAllFramesInLayer(int)
- Returns all JInternalFrames currently displayed in the
desktop that are in layer.
-
getDesktopManager()
-
-
getUI()
-
-
getUIClassID()
-
-
isOpaque()
- Returns true if this component is completely opaque.
-
setDesktopManager(DesktopManager)
-
-
setUI(DesktopPaneUI)
-
-
updateUI()
- Called to replace the UI with the latest version from the
default UIFactory.
JDesktopPane
public JDesktopPane()
getUI
public DesktopPaneUI getUI()
setUI
public void setUI(DesktopPaneUI ui)
getDesktopManager
public DesktopManager getDesktopManager()
setDesktopManager
public void setDesktopManager(DesktopManager d)
updateUI
public void updateUI()
- Called to replace the UI with the latest version from the
default UIFactory.
- Overrides:
- updateUI in class JComponent
getUIClassID
public String getUIClassID()
- Returns:
- "DesktopPaneUI"
- Overrides:
- getUIClassID in class JComponent
- See Also:
- getUIClassID, getUI
getAllFrames
public JInternalFrame[] getAllFrames()
- Returns all JInternalFrames currently displayed in the
desktop. This will return iconified frames as well.
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.
isOpaque
public boolean isOpaque()
- Returns true if this component is completely opaque.
- Overrides:
- isOpaque in class JComponent
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