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