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):
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)?