|
Java™ by example!
|
|
|
How do I switch to another display mode?
 From JDK1.4, you can use the class DisplayMode. Either instantiate a DisplayMode object by specifying width, height, bitdepth and refreshrate, or get a list of available DisplayModes by calling the method getDisplayModes on the current GraphicsDevice. When you've made up your mind about the display mode, call the method setFullScreenWindow to get the device into "full-screen exclusive mode" (necessary) and the method setDisplayMode to perform the display change. Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|