Generally, you add JInternalFrame
s to a JDesktopPane
. The UI delegates the look-and-feel-specific actions to the DesktopManager
object maintained by the JDesktopPane
.
The JInternalFrame
content pane is where you add child components. As a convenience, the {@code add}, {@code remove}, and {@code setLayout}methods of this class are overridden, so that they delegate calls to the corresponding methods of the {@code ContentPane}. For example, you can add a child component to an internal frame as follows:
internalFrame.add(child);And the child will be added to the contentPane. The content pane is actually managed by an instance of
JRootPane
, which also manages a layout pane, glass pane, and optional menu bar for the internal frame. Please see the JRootPane
documentation for a complete description of these components. Refer to {@link javax.swing.RootPaneContainer}for details on adding, removing and setting the LayoutManager
of a JInternalFrame
. Warning: Swing is not thread safe. For more information see Swing's Threading Policy.
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 applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans
package. Please see {@link java.beans.XMLEncoder}.
@see InternalFrameEvent
@see JDesktopPane
@see DesktopManager
@see JInternalFrame.JDesktopIcon
@see JRootPane
@see javax.swing.RootPaneContainer
@author David Kloba
@author Rich Schiavi
@beaninfo attribute: isContainer true attribute: containerDelegate getContentPane description: A frame container which is contained within another window.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|