A lightweight object that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar. For task-oriented documentation and examples of using internal frames, see How to Use Internal Frames, a section in The Java Tutorial.
JInternalFrames to a
JDesktopPane. The UI
delegates the look-and-feel-specific actions to the
object maintained by the
JInternalFrame content pane
is where you add child components.
As a convenience, the
methods of this class are overridden, so that they delegate calls
to the corresponding methods of the
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
JRootPanedocumentation for a complete description of these components. Refer to
javax.swing.RootPaneContainerfor details on adding, removing and setting the
Warning: Swing is not thread safe. For more information see Swing's Threading Policy.
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