ParentDialog disposing on pressing ESC on the JOPtionPane dialog?????
Posted on 2002-03-07
I am using a JDialog which disposes on pressing ESC keu, i am also using JOptionPane
for popping up some messages from this dialog. Problem is when i use the ESC key for
disposing JOptionPane my dialog is also getting disposed. I am creating dialog like
public MyDialog(Frame rootFrame)
super( rootFrame,true );
public void keyReleased(KeyEvent e)
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE)
I am not getting the problem. Can anyone help me?
Thanks in advance