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 / General / March 2006

Tip: Looking for answers? Try searching our database.

Webstart application focus

Thread view: 
olamr - 09 Mar 2006 11:36 GMT
Hi all,
using jdk1.5, I have developed a webstart application as a singleton,
i.e. the app can be reactivated via
SingleInstanceListener.newActivation. Everything is fine, but no matter
what I do, the app is behind the brower that reactivates the url. I
have used JFrame.requestFocus() in different threads, even with timers
and SwingUtilities.invokeLater(), but nothing works. (First activation
is always ok.)
Ideas anyone ?
TIA
Ola
andrewthommo@gmail.com - 13 Mar 2006 02:56 GMT
>using jdk1.5, I have developed a webstart application as a singleton,
>i.e. the app can be reactivated via
>SingleInstanceListener.newActivation. Everything is fine, but no matter
>what I do, the app is behind the brower that reactivates the url. I
>have used JFrame.requestFocus()

Have you tried toFront()? (check docs.) as far as I know, a request
for focus does not specifically call the application to the topmost
app.
(though the docs. might prove me wrong - I don't
have time to check.)

HTH

Andrew T.
olamr - 13 Mar 2006 11:07 GMT
Hi,
I find the docs somewhat unclear, but java.awt.Window.toFront() works !
Thanks!
-Ola


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.