Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (711)
Games in Android Showcase (213)
games submitted by our members
Games in WIP (785)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Display Question  (Read 1219 times)
0 Members and 1 Guest are viewing this topic.
Offline TLE

Senior Newbie

« Posted 2007-07-16 02:53:32 »

Ok, so I've been setting up all my display pictures basically by specifying the x and y pixels to draw them on, using actual numbers.  Now I'm thinking that if I run it on another computer with a different sized monitor, everything could look really screwed up, things won't be on screen that should be and such.  Is this so?  If yes, how should I go about fixing this mess I've made?  If not, can you explain to me why it won't be a problem?

Offline Japheth

Junior Newbie

« Reply #1 - Posted 2007-07-16 04:15:22 »

The only thing that matters is that the resolution is the same on all monitors, which you can easily make sure of in your application. If the monitor is in 800x600 resolution, no matter what actual size it is, it means it is 800 pixels long and 600 pixels wide and the actual numbers you are using to display the pictures represent pixels. If you always use the same resolution, pictures on bigger monitors will appear bigger since each pixel would be a little bit bigger on a bigger monitor. Take a look at for an easy way of setting the resolution. Basically, if you make sure to switch to a certain resolution at the start of your application, if it looks good on your monitor, it should look good on all monitors.
Offline TLE

Senior Newbie

« Reply #2 - Posted 2007-07-17 13:19:22 »

Hmm, isDisplayChangeSupported() returns false for me >.<

EDIT: Nevermind, I'm an idiot.  Was doing check before I launched into FSEM.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Archive (48 views)
2017-02-27 19:41:49

Riven (56 views)
2017-02-27 17:26:59

numerical (429 views)
2017-02-21 07:32:16

numerical (430 views)
2017-02-21 07:31:46

theagentd (544 views)
2017-02-18 13:42:33

theagentd (540 views)
2017-02-18 13:35:16

h.pernpeintner (1704 views)
2017-01-24 22:39:11

h.pernpeintner (1678 views)
2017-01-24 22:38:32

Galdo (2258 views)
2017-01-12 13:44:09

Archive (2181 views)
2017-01-02 05:31:41
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!