Example usage for Java javax.swing JDesktopPane fields, constructors, methods, implement or subclass
The text is from its open source code.
int | LIVE_DRAG_MODE Indicates that the entire contents of the item being dragged should appear inside the desktop pane. |
int | OUTLINE_DRAG_MODE Indicates that an outline only of the item being dragged should appear inside the desktop pane. |
JDesktopPane() Creates a new JDesktopPane . |
Component | add(Component comp) Appends the specified component to the end of this container. |
Component | add(String name, Component comp) Adds the specified component to this container. |
void | addComponentListener(ComponentListener l) Adds the specified component listener to receive component events from this component. |
AccessibleContext | getAccessibleContext() 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. |
Rectangle | getBounds() Gets the bounds of this component in the form of a Rectangle object. |
DesktopManager | getDesktopManager() Returns the DesktopManger that handles desktop-specific UI actions. |
int | getDragMode() Gets the current "dragging style" used by the desktop pane. |
int | getHeight() Returns the current height of this component. |
JInternalFrame | getSelectedFrame() Returns the currently active JInternalFrame in this JDesktopPane , or null if no JInternalFrame is currently active. |
Dimension | getSize() Returns the size of this component in the form of a Dimension object. |
int | getWidth() Returns the current width of this component. |
void | remove(Component comp) |
void | remove(int index) |
void | removeAll() |
void | revalidate() Supports deferred automatic layout. |
JInternalFrame | selectFrame(boolean forward) Selects the next JInternalFrame in this desktop pane. |
void | setBackground(Color bg) Sets the background color of this component. |
void | setComponentZOrder(Component comp, int index) |
void | setDragMode(int dragMode) Sets the "dragging style" used by the desktop pane. |
void | setLayout(LayoutManager mgr) Sets the layout manager for this container. |
void | setOpaque(boolean isOpaque) If true the component paints every pixel within its bounds. |
void | setPreferredSize(Dimension preferredSize) Sets the preferred size of this component. |
void | setSelectedFrame(JInternalFrame f) Sets the currently active JInternalFrame in this JDesktopPane . |