I received a question around the JOptionPane class so I might as well point you in the direction of some swing dialog box articles:
- Creating a Message Dialog Box - Part I looks at using the showMessageDialog method of the JOptionPane class.
- Creating a Message Dialog Box - Part II goes a bit further by looking at the showConfirmDialog and showOptionDialog methods.
- Building an Input Dialog Box shows how to use the JOptionPane to get some data from the user.
Related Code Examples: