How to Flash/Blink the Taskbar button of an java Application

I need to blink taskbar button of java application 3 times to alert the user.

I do not want to use native solution.
sultanpcAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
you can try calling toFront() on your frame, you can't control how any times it flashes though
other than that think you're stuck with native solutions
0
 
Bruce SmithConnect With a Mentor Software Engineer IICommented:
Okay, so I'm not sure you can do this using a non-native solution but the following seems to accomplish what you're looking for. It flashes the task-bar (not necessarily 3 times) but definitely alerts the user.

[code]
this.toFront();
this.toBack();
[/code]

Or instead of 'this', the name of the frame or panel you want to bring to attention.
0
 
sultanpcAuthor Commented:
Thanks for the support. It works with Vista
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.