FullScreen mode Resolution Help

0 Thomas Connachan · November 3, 2014

So I have been going over some tutorials because some coursework I have is to make a game.... no idea how to but guess we all learn at some point.

the question I have is this code here 

DisplayMode dm = new DisplayMode(1440,900,64, DisplayMode.REFRESH_RATE_UNKNOWN);

is there a way to have it so that it can auto set the resolution to whatever your screen is using?
thanks for any help

Post a Reply


Oldest  Newest  Rating
0 Alex Sweps · November 3, 2014
Yes there will be a method like, .getVertical and .getHorizontal. Depending on if your coding for android or desktop it might change. I cant remember it off the top of my head but it would definitely be there.  
  • 1

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator