Hello everyone,
I need some help from you. I am using JDialog box with JOptionPane for showing a msg to user that "Are you sure you want to modify this record?" with YES NO Option. It works at actionPerformed() method of ActionEvent class but is not working with keyPressed() method of KeyEvent class. It takes YES option by default, instead of pressing NO option. What is the reason behind it and how can I solve this problem?
Please help me.
