I am using JOptionPane.showInputDialog() to get an input value. It is having OK, cancel button. Is there any way, I can know cancel button is pressed, since i want to perform some actions when cancel is pressed.
Again, when close on right top corner is pressed, Is there any way, I can know close is pressed.
Again, when close on right top corner is pressed, Is there any way, I can know close is pressed.