So, I\'ve read the Java API, but still can\'t seem to make heads or tails about how to do this. And believe me I have tried. I want an ActionListener to cause a message box
Try this..
JOptionPane.showConfirmDialog(null, "Do you", "Message", JOptionPane.YES_NO_OPTION);
It will return 0 for Yes and 1 for No