Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2006

Tip: Looking for answers? Try searching our database.

Bringing a Java Application to Front

Thread view: 
MikeW - 08 Jan 2006 16:21 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.