JOptionPane : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

JOptionPane
Used in Swing for simple pop-up modal dialog boxes to interact with the user, sort of a streamlined JDialog to handle common cases.

Dialog is the AWT (Advanced Windowing Toolkit) equivalent of JoptionPane. Here are some

// sample use of JOptionPane.showMessageDialog
import javax.swing.JOptionPane;

JOptionPane.showMessageDialog( this,
                               "That name is already taken.",
                               "Duplicate Name",
                               JOptionPane.ERROR_MESSAGE );
Finally, there is showOptionDialog: the Grand Unification of the above three, which I have not shown.

Learning More

Oracle’s Javadoc on JOptionPane class : available:

This page is posted
on the web at:

http://mindprod.com/jgloss/joptionpane.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\joptionpane.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[107.21.137.184]
You are visitor number