Hi,
In the Swing API, just see the JOptionPane.showXXX static methods, which purposes are to display various types of dialog boxes, for example :
Show an error dialog that displays the message, 'alert':
{
...
JOptionPane.showMessageDialog(null,
"alert",
"alert",
JOptionPane.ERROR_MESSAGE);
//extracted from the JDK documentation
...
}
bye --
Globos