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
...
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.