Running on Windows XP; tested under Java 1.4 and Java 1.5:
I'm using sockets to check to se if my application is already running
when I start. If so, I send a message to the running version, telling
it which file to open. In some situations, there may be no new file to
open, so the application is simply supposed to come to front. In other
situations, the application may need to present an error dialog.
The communication all works fine. The problem is that the original
application does not always come to front--instead, the application's
icon on the task bar flashes. If I select the task bar icon, everything
works as I want.
How can I convince Windows to bring the application to front rather
than flash the task bar icon? (toFront does not work--I'm doing that.)
Thanks,
Mike Westerfield
the Sun - 09 Jan 2006 10:52 GMT
Try using setState(Frame.NORMAL) on your JFrame
It worked for me.
-
Satish