Webstart window focus

When i run the webstart demos: http://lwjgl.org/jnlp/lwjgl-demo.php/test.opengl.Gears
The window is created behind my browser window rather than in focus.

Im trying to resolve this issue for my own webstart app. If i place a JOptionPane Dialog to kick things off, it takes foreground focus.
Is there a Display function to “bring to foreground”

Im scratching my head here, but it must be something trivial im missing.
If i click the link i placed above, it opens as i hoped in the foreground…but if i copy and paste the URL into the browser address it opens in the background (the effect i see on the LWJGL original page)

Has anyone found out the solution for this issue or at least figured out the cause?

it runs in the foreground for me

When my game installs for the first time, I have this problem.

Works fine for me.

Same here (Vista, Opera, 6uN)

Cas :slight_smile:

Is there an available method in LWJGL or Slick that allow the game window to request the focus?

Thanks

all Jcomponent’s have a requestFocus() method implemented to send a focusEvent to Swing EDT : http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComponent.html#requestFocus()

swing is hardly lwjgl ::slight_smile:

Which java version is that?

If I remember correctly on my side I’ve seen this issue with 1.5.0_10 and 1.6.0_03.

Can’t say about older releases. And the issue happens in both Firefox 2 and IE 7.

Jerome

When I first ran the gears demo, it appeared in the foreground. After that, it appears as the back most window. The only difference was that on the first run, webstart asks for permission to run the application.

Java version build 1.6.0_03-b05

Nvidia Geforce FX Go 5650, 84.25 drivers.

Endolf