Java javax.swing JDesktopPane fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JDesktopPane fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JDesktopPane.

The text is from its open source code.

Subclass

javax.swing.JDesktopPane has subclasses.
Click this link to see all its subclasses.

Field

intLIVE_DRAG_MODE
Indicates that the entire contents of the item being dragged should appear inside the desktop pane.
intOUTLINE_DRAG_MODE
Indicates that an outline only of the item being dragged should appear inside the desktop pane.

Constructor

JDesktopPane()
Creates a new JDesktopPane.

Method

Componentadd(Component comp)
Appends the specified component to the end of this container.
Componentadd(String name, Component comp)
Adds the specified component to this container.
voidaddComponentListener(ComponentListener l)
Adds the specified component listener to receive component events from this component.
AccessibleContextgetAccessibleContext()
Gets the AccessibleContext associated with this JDesktopPane.
JInternalFrame[]getAllFrames()
Returns all JInternalFrames currently displayed in the desktop.
JInternalFrame[]getAllFramesInLayer(int layer)
Returns all JInternalFrames currently displayed in the specified layer of the desktop.
RectanglegetBounds()
Gets the bounds of this component in the form of a Rectangle object.
DesktopManagergetDesktopManager()
Returns the DesktopManger that handles desktop-specific UI actions.
intgetDragMode()
Gets the current "dragging style" used by the desktop pane.
intgetHeight()
Returns the current height of this component.
JInternalFramegetSelectedFrame()
Returns the currently active JInternalFrame in this JDesktopPane, or null if no JInternalFrame is currently active.
DimensiongetSize()
Returns the size of this component in the form of a Dimension object.
intgetWidth()
Returns the current width of this component.
voidremove(Component comp)
voidremove(int index)
voidremoveAll()
voidrevalidate()
Supports deferred automatic layout.
JInternalFrameselectFrame(boolean forward)
Selects the next JInternalFrame in this desktop pane.
voidsetBackground(Color bg)
Sets the background color of this component.
voidsetComponentZOrder(Component comp, int index)
voidsetDragMode(int dragMode)
Sets the "dragging style" used by the desktop pane.
voidsetLayout(LayoutManager mgr)
Sets the layout manager for this container.
voidsetOpaque(boolean isOpaque)
If true the component paints every pixel within its bounds.
voidsetPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
voidsetSelectedFrame(JInternalFrame f)
Sets the currently active JInternalFrame in this JDesktopPane.