Pane and Panel Beans

A pane or panel is a container for other components. It is used within another pane or panel, within a window, or within an applet. VisualAge provides pane and panel beans from Swing and AWT packages. Basic pane and panel beans from the Abstract Windowing Toolkit (AWT) are provided in the Java class libraries project, in the java.awt package. Enhanced pane and panel beans from the Java Foundation Classes (JFC) library are provided in the JFC class libraries project, in the com.sun.java.swing package. Although Swing and AWT beans can be mixed, it is inadvisable.

The following beans provide panes and panels:


Bean Description
JDesktopPane A pane for a desktop within another Swing container
JEditorPane A pane for editing defined text types, such as HTML
JOptionPane A simple dialog pane
JPanel or Panel A composition surface for user interface components
JScrollPane or ScrollPane A scrollable view for another component
JSplitPane A split view for other components
JTabbedPane A tabbed view for other components
JTextPane A pane for editing text with visible styles and embedded objects


Related procedures
Adding a Pane or Panel

Related references
Beans for Visual Composition
Applet Beans
Window Beans