I just popped a JOptionPane (thanks, CEHJ!) into a class. Works beautifully, but after I click "Yes", and the box goes away, and my class would otherwise end, it does not end. I'm assuming I have to explicitly kill the JOptionPane thread, but I don't know how? (I'm running it inside of Eclipse.)
This is the code snippet:
Object options =
int n = JOptionPane.showOptionDialog(null, "Some Question? "
, "Some Title", JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.QUESTION_MESSAGE, null, options, options);