Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 4070 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

JGO Coder


Projects: 2



« 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!
Legends of Yore - The Casual Retro Roguelike
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


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

it runs in the foreground for me

Offline TheAnalogKid

JGO Coder


Projects: 2



« 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: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


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

Works fine for me.

Offline princec

JGO Kernel


Medals: 339
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


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

Same here (Vista, Opera, 6uN)

Cas Smiley

Offline TheAnalogKid

JGO Coder


Projects: 2



« 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

JGO Knight


Medals: 19
Projects: 1


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!
Legends of Yore - The Casual Retro Roguelike
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


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

JGO Coder


Projects: 2



« 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

JGO Coder


Medals: 7


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.

 

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

The first screenshot will be displayed as a thumbnail.

pw (6 views)
2014-07-24 01:59:36

Riven (7 views)
2014-07-23 21:16:32

Riven (9 views)
2014-07-23 21:07:15

Riven (9 views)
2014-07-23 20:56:16

ctomni231 (41 views)
2014-07-18 06:55:21

Zero Volt (37 views)
2014-07-17 23:47:54

danieldean (31 views)
2014-07-17 23:41:23

MustardPeter (33 views)
2014-07-16 23:30:00

Cero (48 views)
2014-07-16 00:42:17

Riven (49 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!