posted 18 years ago
It seems that you have see your JDialog as non-modal. With a non-modal dialog, user can still input on the background GUI. You can solve it by creating a modal dialog.
However, if you just want to show a warning message, why not use the static method provided by JOptionPane, like showWarningMessage()?
Regards
Anthony Yip
[ March 10, 2004: Message edited by: Anthony Yip ]