tags:

views:

764

answers:

3

I'm developing a swing application and I need to flash the windows task bar. I can't use frame.requestFocus(); because I don't want to steal focus from any other application.

+1  A: 

I don't know if it applies to newer versions of Windows, but the .toFront() method used to flash the window if none of the current VM's windows were in the foreground.

This means that calling frame.toFront() on a minimized frame would always make it flash...

R. Bemrose
+1  A: 

JNIWrapper with its winpack extension can do what you want.

The Demo on the site shows it in action.

Allain Lalonde
A: 

Using Swing per se, you very probably can't; that's a Widnows specific thing.

Charlie Martin
OS X has a similar feature.
Allain Lalonde
Uh, and? The Windows Taskbar is still windows specific.
Charlie Martin