[SOLVED] JOptionPane KeyEvent
Hi, here again :), I was able to set Default button by:
When user click EXIT button a JOptionPane will show asking if user really want to exit.
When user click "YES" then the program will be terminated, if "NO" then back to LOGIN FORM.
Everything works expectedly when I use MOUSE events.
On KeyPress event when OptionPane show and press TAB then to set its focus on "YES" button then press enter the command for "NO" event executes.
I missing something in KEYPRESS event?
Thanks in advance,