JOptionPane.showMessageDialog does not return focus to the applet.
posted 5 years ago
I have an applet which displays a warning message using JOptionPane.showMessageDialog. After closing the message box with OK the applet does not get the focus again. Does anyone know how to force the applet to regain the focus. requestFocus and requestFocusInWindow methods don't help. Tried passing the applet or its top level parent frame without success. Thanks in advance.