My JOptionPane code is as follows:
selectedSiteName = JOptionPane.showInputDialog("Enter the name of the new site:");
This displays input with a text box and an OK and Cancel button. I need to determine if Cancel was clicked.
Greetings.
java joptionpane
burntsugar
source share