| | |
Full-Screen Exclusive Mode: "Display Modes" question
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi,
I am working on the Pacman game and I want it to run in full-screen mode.
I get the screen graphics device first and then from that device I can get the available display modes (on the specified computer):
And my question is:
Can I set another display mode on the specified computer although it is not available on that computer (e.g. the display mode is not contained in the "DisplayMode[]" array)?
Thanks.
Petike
I am working on the Pacman game and I want it to run in full-screen mode.
I get the screen graphics device first and then from that device I can get the available display modes (on the specified computer):
Java Syntax (Toggle Plain Text)
import java.awt.GraphicsDevice; import java.awt.DisplayMode; // . // . // . DisplayMode[] dms = graphicsDevice.getDisplayModes();
And my question is:
Can I set another display mode on the specified computer although it is not available on that computer (e.g. the display mode is not contained in the "DisplayMode[]" array)?
Thanks.
Petike
Petike
I am quite sure that you can, the question then is, however, "Will the monitor/graphics card support it?" And the answer to that is "Probably not".
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
Other Threads in the Java Forum
- Previous Thread: Scanner Input from Keyboard help
- Next Thread: problem with frames..
| Thread Tools | Search this Thread |
Tag cloud for Java
addressbook android api apple applet application arguments array arrays automation binary bluetooth button calculator chat class classes client code columns component converter database draw eclipse error errors event exception file fractal ftp game givemetehcodez graphics gridlayout gui helpwithhomework html ide image inetaddress input integer j2me japplet java javaprojects jme jmf jni jpanel julia link linux list loop map method methods midlethttpconnection mobile netbeans newbie number objects openjavafx oracle php print problem program programming project projects recursion rim scanner screen server set signing size smart sms socket sort sql storm string support swing test threads time tree unlimited variablebinding webservices windows






