views:

886

answers:

4

I'd like my application to have a full-screen mode. What is the easiest way to do this, do I need a third party library for this or is there something in the JDK that already offers this?

+10  A: 

Try the Full-Screen Exclusive Mode API.

Bill the Lizard
Perfect. Thanks.
Epaga
+1  A: 

I've done this using JOGL when having a full screen OpenGL user interface for a game. It's quite easy. I believe that the capability was added to Java with version 5 as well, but it's so long ago that I've forgotten how to do it (edit: see answer above for how).

JeeBee
A: 

It really depends on what you're using to display your interface, i.e. AWT/Spring or OpenGL etc.

Java has a full screen exclusive mode API - see this tutorial from Sun.

Max Stewart
A: 

JFrame setUndecorated(true)

Ken