我的JOptionPane代码如下:
selectedSiteName = JOptionPane.showInputDialog("Enter the name of the new site:");
这将呈现一个带有文本框和OK和Cancel按钮的输入。我需要检测是否单击了Cancel。
干杯。
https://stackoverflow.com/questions/1215436
相似问题