So I am using the DisplayMode to set my resolution for a fullscreen as follows
DisplayMode dm = new DisplayMode(1440,900,64, DisplayMode.REFRESH_RATE_UNKNOWN);
My question is, Is there anything that I can put in place of 1440, 900 to get the app to set the resolution to whatever the computer it is running on is currently at?
Take a look at
Toolkit#getScreenResolution
andToolkit#getScreenSize
for startersYou can also use (something similar to)
to get the screen bounds of given
GraphicsDevice
/screen (the example gets the default screen device)Take a look at
GraphicsEnvironment
andGraphicsDevice
for more details