Full-Screen Exclusive Mode: "Display Modes" question

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2009
Posts: 4
Reputation: petike is an unknown quantity at this point 
Solved Threads: 0
petike's Avatar
petike petike is offline Offline
Newbie Poster

Full-Screen Exclusive Mode: "Display Modes" question

 
0
  #1
Apr 14th, 2009
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):
  1. import java.awt.GraphicsDevice;
  2. import java.awt.DisplayMode;
  3.  
  4. // .
  5. // .
  6. // .
  7.  
  8. 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
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: Full-Screen Exclusive Mode: "Display Modes" question

 
0
  #2
Apr 14th, 2009
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC