I have a problem to run Java application in full screen mode on "openSUSE 11.4 (x86_64)". I am using Java 1.6.0_26-b03.
I have try to run two examples of full screen application:
- Example from Oracle site: Display Mode Test.
- JDarkRoom.jar (simple text editor) downloaded from Codealchemists.
In both cases I have a Linux Task bar visible over the application. It must be something with system settings/configuration?
You should be able to go “really full screen” with
GraphicsDevice.setFullScreenWindow (window). However, due to bugs in the most popular Java runtimes, this may not work on systems running certain “broken” versions in the 1.6 = Java 6 series. I haven't tested this thoroughly, so it may be that the patch hasn't propagated out to the general populace, yet.https://bugs.java.com/bugdatabase/view_bug?bug_id=7057287
Background/Theory
OK, so here goes for too much information, and not enough help… Here's a bit of why this didn't work right…
And the Fail:
Basically, the window manager hints specification wasn't being followed correctly by Sun/Oracle (or Red Hat, who copied off Sun/Oracle, or probably IBM, because they probably did the same, but I don't see anybody complaining about them)…
Although, I do see some griping back and forth about whether it's a bug (specifically) with the K Desktop Environment's window manager (KWin), as apparently this bug only shows up in K, and not in Gnome, XFCE, and friends.
Work-Around
Aside from patching your Java runtimes (and/or your customers'), the only real fix would be to use the platform-specific Java libraries (perhaps grab the underlying AWT objects using reflection… eww…) and set the proper window hints, yourself.
Yes, that's gross…