Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (524)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
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  
  Vista/Win7 Fullscreen: Vanishing Palettes  (Read 1519 times)
0 Members and 1 Guest are viewing this topic.
Offline sorghumking

Junior Newbie





« Posted 2012-01-10 21:30:05 »

I've got a JOGL-based fullscreen (non-exclusive mode) application that exhibits weird drawing/windowing behavior in Win7 and Vista, but not XP.  None of the fixes mentioned in these threads did the trick:

http://www.java-gaming.org/topics/jogl-vista-bug/22086/msg/182284/view.html#msg182284
http://www.java-gaming.org/topics/white-screen-in-fullscreen-vista-64/22248/view.html

The main components are a GLCanvas that lives in a JFrame, and two modeless JFrame tool palettes which should always be drawn on top of the canvas. On launch, only the GLCanvas appears.  By Alt-Tabbing and ensuring the mouse is over either palette when releasing Alt-Tab, I can get the palettes to appear correctly.  As soon as I mouse back over the canvas, the screen briefly goes black, then returns to the original state: canvas visible, palettes invisible.

Two possibly useful details:
- I can interact with the palettes (e.g. click buttons, resize) even when they're not visible.
- I recently discovered an odd workaround: Opening and closing any of the app's modal dialogs puts everything in a proper, working state. (If you Alt-Tab away from the app and return, of course, it's back to square one.)

I appear to be running against JOGL 1.1.1, which I realize is dated, but it's worked well until we discovered this problem.  I'm wondering if moving to a newer version of JOGL is at all likely make a difference.

If not, any other ideas/suggestions would be hugely appreciated.  I've spent quite a bit of time on this with no luck.  Thanks!
Offline gouessej
« Reply #1 - Posted 2012-01-10 22:23:49 »

Hi

Anyway you have to move to JOGL 2.0 because JOGL 1.1.1a is no more maintained, no fix will be backported.

Do you use JInternalFrame? If so, rather use GLJPanel even though it has a bigger memory footprint. Which version of Java do you use? Mixing heavyweight and lightweight components is reliably possible on Java 1.7 and on latest updates of Java 1.6.

I already succeeded in writing an Eclipse RCP application with a GLCanvas (javax.media.awt.GLCanvas, not its brand new SWT equivalent introduced in JOGL 2.0) in a Composite with a JInternalFrame containing lots of Swing components, even a JColorChooser. It works damn good, even with some transparency so that you can see the models in 3D behind the JInternalFrame. I had no problem on Windows, my colleagues tested mainly on Vista and XP.

Software simulated fullscreen mode is fine for games in some cases, I used it for years. However, you may have some problems for real applications with several frames having different Z orders...

Are you forced to use modal dialogs?

Offline sorghumking

Junior Newbie





« Reply #2 - Posted 2012-01-11 19:15:24 »

Looks like heavyweight/lightweight mixing is supported as of 1.6.0_12. I'm running against 1.6.0_29-b11, should be okay.

No explicit use of JInternalFrame.

Are you forced to use modal dialogs?

The palettes are modeless and the modal dialogs in the app work just fine - did you mean modeless? Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2012-01-12 10:07:18 »

In my humble opinion, you should not use several JFrame instances, you should use a single JFrame containing a GLCanvas (or another JOGL canvas like GLJPanel and GLWindow) and some JInternalFrame instances for your palettes.

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.

toopeicgaming1999 (65 views)
2014-11-26 15:22:04

toopeicgaming1999 (58 views)
2014-11-26 15:20:36

toopeicgaming1999 (11 views)
2014-11-26 15:20:08

SHC (24 views)
2014-11-25 12:00:59

SHC (24 views)
2014-11-25 11:53:45

Norakomi (28 views)
2014-11-25 11:26:43

Gibbo3771 (24 views)
2014-11-24 19:59:16

trollwarrior1 (37 views)
2014-11-22 12:13:56

xFryIx (76 views)
2014-11-13 12:34:49

digdugdiggy (53 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!