0

I'm a computer science student working on a Yahoo! Messenger-like program implemented in Java.

My problem is that whenever the JTextArea inside my frame contains new message updates, the user must be prompted even when his/her frame is minimized. Is there a workaround on how to make the JFrame on the taskbar blink when updates are received?

In short, I need a way to notify the user that the frame has been updated even though it is minimized.

How can I do that?

Pops
  • 30,199
  • 37
  • 136
  • 151
  • possible duplicate of [Using swing how can I flash the Windows Taskbar](http://stackoverflow.com/questions/489255/using-swing-how-can-i-flash-the-windows-taskbar) – Pops Nov 09 '11 at 20:52
  • Have a look at this [question](http://stackoverflow.com/questions/489255/using-swing-how-can-i-flash-the-windows-taskbar). – kgiannakakis Apr 28 '10 at 10:28

1 Answers1

3

You could use JFrame.toFront(), although I don't think it is the best way to do what you want.

Pops
  • 30,199
  • 37
  • 136
  • 151
adev
  • 367
  • 1
  • 3
  • 20
  • Focus would be lost http://stackoverflow.com/questions/6423987/blink-jframe-in-swing-without-transferring-focus – Kelvin Ng Oct 23 '14 at 21:53