# Swing JInternalFrame Wizard

Subclasses of the Swing JInternalFrame class can be created using the Swing JInternalFrame wizard. The wizard can be selected from the drop down wizard menu or from the Eclipse New wizard. To use the wizard, select the project source folder and package to contain the class. Then enter the class name and hit the Finish button.

The wizard generates the following code including a main() method.

> import

javax.swing.JInternalFrame;
public class SwingJInternalFrameTest extends JInternalFrame {
public static void main(String[] args) {
try {
SwingJInternalFrameTest frame = new SwingJInternalFrameTest();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
public SwingJInternalFrameTest() {
setBounds(100, 100, 450, 300);
}
}

When editing Swing JInternalFrames, all of the standard Swing layouts, containers, widgets and menus are available. Custom or third party controls may be added via the Choose Component command. You may also preview your InternalFrame using different look and feels using the drop down look and feel list in the toolbar.