Again, I will point you back to the API - JOptionPane.NO_OPTION is defined as 1...and I will leave it up to you to look up what JOptionPane.YES_OPTION is defined as (hint: the other value you are...
Type: Posts; User: copeg
Again, I will point you back to the API - JOptionPane.NO_OPTION is defined as 1...and I will leave it up to you to look up what JOptionPane.YES_OPTION is defined as (hint: the other value you are...
The following link should have code examples for you to use.
How to Make Dialogs (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
Just check the returned int against...
See the API for JOptionPane
JOptionPane (Java Platform SE 6)
No listener necessary, this method returns an integer value corresponding to which selection was chosen (JOptionPane.CANCEL_OPTION,...