Results 1 to 2 of 2
Thread: JOptionPane notification
- 01-05-2010, 07:32 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 56
- Rep Power
- 0
JOptionPane notification
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!"
- 01-05-2010, 07:41 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,408
- Blog Entries
- 7
- Rep Power
- 17
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.
kind regards,
Jos
Similar Threads
-
read notification of mail
By javastuden in forum Advanced JavaReplies: 0Last Post: 12-03-2009, 11:19 AM -
threads waiting the same event :searching for a specific notification
By nabila.abdessaied in forum Threads and SynchronizationReplies: 2Last Post: 03-31-2009, 10:41 AM -
threads waiting the same event :searching for a specific notification
By nabila.abdessaied in forum Threads and SynchronizationReplies: 0Last Post: 03-30-2009, 05:33 PM -
JOptionpane
By tommyyyy in forum New To JavaReplies: 2Last Post: 03-20-2009, 08:33 AM -
JOptionPane
By whosadork in forum New To JavaReplies: 2Last Post: 10-23-2008, 02:17 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks