If an application is minimized, is there a way to notify the user that a JOptionPane has popped up? The program is like a flash card application and I use JOptionPane.showMessageDialog(...) to show the right answer. However it can be set for any time length so it may be minimized for a long time. If this happens, there is no notification that the program has updated and the timer has began again. So there is a chance the user will miss out on a number of problems. Does JOptionPane have some kind of method I could use to notify the user? Or is there any other way I can do it? I want the minimized program to say "HEY PAY ATTENTION TO ME REAL FAST!"
You have to de-iconify your entire JFrame when you want to notify the user; that way the JOptionPane is visible (as well as the entire application). Look at the setState( ... ) method or the setExtendedState( ... ) method. The JFrame inherits those methods from the Frame class.
Originally Posted by Chasingxsuns