Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

How to set screen resolution  RSS feed

 
Ranch Hand
Posts: 269
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Mike
 
Ranch Hand
Posts: 4632
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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





 
Ranch Hand
Posts: 147
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's also the Full Screen Exclusive Mode API you could have a look at:

http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/extra/fullscreen/index.html
 
Mich Robinson
Ranch Hand
Posts: 269
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Michael Dunn wrote:
thanks for the code

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!