I'm developing a Swing application and I need to flash the Windows taskbar. I can't use frame.requestFocus()
because I don't want to steal focus from any other application.
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...
JNIWrapper with its winpack extension can do what you want.
The Demo on the site shows it in action.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With