wood burning stoves 2.0
The moose likes Game Development and the fly likes How to set screen resolution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "How to set screen resolution" Watch "How to set screen resolution" New topic

How to set screen resolution

Mich Robinson
Ranch Hand

Joined: Jun 28, 2009
Posts: 260
Is it possible to have an application that can alter the screen resolution to 600 * 480. My current applet uses these dimensions and all the graphics are set up for this however if I change the applet to an application then it would be nice to be able to use the full screen but still keep with the 600 * 480 res.


Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
something to play with, for 800x600

my PC, Vista, min resolution in Display Settings is 800x600, and this works OK
change to 600x480 and it goes belly-up

Jan Hoppmann
Ranch Hand

Joined: Jul 19, 2010
Posts: 147

There's also the Full Screen Exclusive Mode API you could have a look at:


Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
Mich Robinson
Ranch Hand

Joined: Jun 28, 2009
Posts: 260
Cheers guys - your info and method calls pointed me towards one of those java tutorials containing a display mode test that does pretty much everything (full screen and selectable resolution). Sadly I'm a bit thick concerning all this stuff so I'll now have to try and work out what I need in the code they provide - eeek.
Gaurav Barar

Joined: Sep 26, 2012
Posts: 1
Michael Dunn wrote:
thanks for the code
I agree. Here's the link: http://aspose.com/file-tools
subject: How to set screen resolution
It's not a secret anymore!