JDialog

Palette category
Swing
Palette bean
JDialog
Project
JFC class libraries
Package
com.sun.java.swing
Type
JDialog

Use a JDialog bean to provide a custom dialog. A dialog is typically used to display or gather information for a single purpose.

The JDialog bean provides a content pane in which to place other components. The content pane provides logical separation of the dialog from its child components. With the exception of a JMenuBar, user interface components are added to the content pane. The default content pane, a JDialogContentPane, is represented in the Beans List as the child of the JDialog bean. You can delete the default content pane and replace it with another container component.

Use a Dialog bean, rather than a JDialog bean, if you want to use AWT components in the dialog. Although Swing and AWT beans can be mixed, it is inadvisable. Alternatively, use a JOptionPane bean to create any of a variety of standard dialogs.


Related procedures
Composing a Window

Related references
Window Beans
Beans for Visual Composition