Creating a Multiple Document Interface (MDI) Application

See Also

The multiple document interface (MDI) model is like a traditional computer windowing system, in that it has windows within windows. In a windowing system, you have a desktop with windows on it. With a JFC/Swing MDI application, you have a backing window (desktop pane) with internal frames on it. The user can position, resize, close, and minimize the internal frames like windows on a traditional desktop.

To create an MDI application:

  1. Choose File and choose New to display the New wizard. Then expand the Java GUI Forms node and select one of these templates in the Template Chooser:
  2. Add JInternalFrame components to the JDesktopPane container using one of these methods:
Tip You can add other components directly to the JDesktopPane container, such as a JTable or JSlider component. However, these have standard properties and users can't manipulate them as they might manipulate components in a JInternalFrame container.
See Also
Creating a New Form
Adding a Component to a Form

Legal Notices