I had created a JOptionPane of type showInputDialog. When it opens it, it shows me two buttons: OK and Cancel. I would like to handle the action when I push on Cancel button, but I don’t know how to reach it. How can I get it?
I had created a JOptionPane of type showInputDialog . When it opens it, it
Share
For example:
Alternatively with
showOptionDialog:See How to Make Dialogs for more details.
EDIT:
showInputDialog