Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Webstart window focus  (Read 3643 times)
0 Members and 1 Guest are viewing this topic.
Offline parkie

Junior Newbie





« Posted 2007-04-14 09:16:52 »

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"


Offline parkie

Junior Newbie





« Reply #1 - Posted 2007-04-14 11:16:26 »

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)
Offline TheAnalogKid
« League of Dukes »

JGO Coder


Projects: 3



« Reply #2 - Posted 2007-11-05 18:49:19 »

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

Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Matzon
« League of Dukes »

JGO Knight


Medals: 13
Projects: 2


I'm gonna wring your pants!


« Reply #3 - Posted 2007-11-05 19:29:03 »

it runs in the foreground for me

Offline TheAnalogKid
« League of Dukes »

JGO Coder


Projects: 3



« Reply #4 - Posted 2007-11-05 22:18:03 »

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

Offline CaptainJester

JGO Knight


Medals: 10
Projects: 2


Make it work; make it better.


« Reply #5 - Posted 2007-11-06 13:41:21 »

Works fine for me.

Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #6 - Posted 2007-11-07 13:43:55 »

Same here (Vista, Opera, 6uN)

Cas Smiley

Offline TheAnalogKid
« League of Dukes »

JGO Coder


Projects: 3



« Reply #7 - Posted 2007-11-07 15:45:01 »

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

Thanks

Offline broumbroum

Junior Member





« Reply #8 - Posted 2007-11-08 07:32:28 »

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()

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @ http://b23prodtm.webhop.info
on sf.net: /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Offline Matzon
« League of Dukes »

JGO Knight


Medals: 13
Projects: 2


I'm gonna wring your pants!


« Reply #9 - Posted 2007-11-08 08:55:04 »

swing is hardly lwjgl  Roll Eyes

Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline erikd

JGO Knight


Medals: 3
Projects: 3


Maximumisness


« Reply #10 - Posted 2007-11-08 16:16:18 »

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.

Which java version is that?

Offline TheAnalogKid
« League of Dukes »

JGO Coder


Projects: 3



« Reply #11 - Posted 2007-11-08 22:34:09 »

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

Offline endolf
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


Current project release date: sometime in 3003


« Reply #12 - Posted 2007-11-08 23:44:35 »

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

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (80 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (122 views)
2013-05-16 00:53:38

gouessej (114 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (158 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (180 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.074 seconds with 20 queries.