Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (711)
Games in Android Showcase (213)
games submitted by our members
Games in WIP (785)
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 2170 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:

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 »


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 (, 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.

Archive (48 views)
2017-02-27 19:41:49

Riven (56 views)
2017-02-27 17:26:59

numerical (429 views)
2017-02-21 07:32:16

numerical (430 views)
2017-02-21 07:31:46

theagentd (544 views)
2017-02-18 13:42:33

theagentd (540 views)
2017-02-18 13:35:16

h.pernpeintner (1704 views)
2017-01-24 22:39:11

h.pernpeintner (1678 views)
2017-01-24 22:38:32

Galdo (2258 views)
2017-01-12 13:44:09

Archive (2181 views)
2017-01-02 05:31:41
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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‑
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!