Window Beans

Windows beans are the primary visual context for other user interface components. VisualAge provides window beans from Swing and AWT packages. Basic window beans from the Abstract Windowing Toolkit (AWT) are provided in the Java class libraries project, in the java.awt package. Enhanced window 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 windows:


Bean Description
JDialog or Dialog A custom dialog, typically a secondary window
FileDialog A dialog for accessing the file system
JFrame or Frame A desktop window with a title bar, sizing borders, and sizing buttons
JInternalFrame A frame that is a child of another Swing component
JWindow or Window A window without a title bar, sizing borders, and sizing buttons


Related procedures
Composing a Window

Related references
Beans for Visual Composition