Skip to main content

Full screen exclusive mode : Not in JDK 6 ?

2 replies [Last post]
artscoop
Offline
Joined: 2007-11-13
Points: 0

Hello everybody,

I could not find any recent information on this over the web : Is it normal that the GraphicsDevice class (java.awt.GraphicsDevice) does not support setting the current display mode ? (It is true at least for Windows32)
When I had a look at the class code, I saw that the method just throws an UnsupportedOperationException.

Is this feature only supported by Java 1.5 ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
artscoop
Offline
Joined: 2007-11-13
Points: 0

Haa ! Ok, thank you :)
Indeed, I've set the FullScreenWindow after having tried setting the display mode.
Maybe this post will be useful for someone wandering around.

trembovetski
Offline
Joined: 2003-12-31
Points: 0

JDK6 certainly does support full-screen mode.
(if you looked at GraphicsDevice.java - it's a base class with
platform-specific subclasses which allow changing DisplayMode)

Note that you can only change the display mode when you're
in full-screen mode, so you need to do GraphicsDevice.setFullScreenWindow()
first (after making proper checks).

Thanks,
Dmitri
Java2D Team