JOptionPane

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

Use a JOptionPane bean to provide a simple dialog for an input prompt, a message, or user confirmation. The dialog is modal, so the thread is held until the user dismisses the dialog.

You should not use a JOptionPane bean with AWT components. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Adding a Pane or Panel

Related references
Pane and Panel Beans
Beans for Visual Composition