We help IT Professionals succeed at work.

Fullscreen mode in linux

drugge asked
Last Modified: 2007-12-19
Hello. I'm trying to make my java-application to run as a fullscreen application by using the  Full-Screen Exclusive Mode API. It works great under Windows, but not under Linux (Mandrake 9.2, KDE 3.1, with nvidia drivers).
I made this small testprogram when I was debugging:

GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice myDevice = env.getDefaultScreenDevice();
And it returns true under windows and false under Linux. Does anyone know if there is a way/trick to get exclusive fullscreen under linux, or is it impossible since .isFullScreenSupported() returns false?
Watch Question

Top Expert 2004
This one is on us!
(Get your first solution completely free - no credit card required)

this does, i have a program that i wrote that does this using the method described by Webstorm
i just tested it in Gentoo using Gnome but i would imagine it would work in KDE and others as well

- nc


I can get an "ordinary" fullscreen in Linux by setting window-size to the screen's resolution, that's no problem. But my problem was that I want to use the Full-Screen Exclusive mode (http://java.sun.com/docs/books/tutorial/extra/fullscreen/) wich gives the programmer a lot of benefits. You should check it out if you haven't done that. With the Full-Screen Exclusive mode you can change screen resolution and do other nice things.
But as I said, I can't get the exclusive mode to work under linux, just under Windows.

this could be a stretch and i haven't tested it but maybe if you try to make the window the size of the screen, resolution-wise, and then use the exclusive mode
but if you are getting back that it is not supported, then i think that is your answer
what version of the JDK are you using?
Try the newest one and see if there may be some support builtin for it...

Hope it helps

- nc
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.