Webstart application focus

O

olamr

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
 
A

andrewthommo

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

olamr

Hi,
I find the docs somewhat unclear, but java.awt.Window.toFront() works !
Thanks!
-Ola
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top