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...