adjusting images to monitor size

hey e1, I'm in the process of writing my first game so Im just learning the majority of the algorithms associated with games. When I started this game it was strictly for my computer (1280 x 800 monitor size) so I drew all the images to fill my monitor and used

frame.setExtendedState (JFrame.MAXIMIZED_BOTH);

to maximize the window (didn't want full screen mode). Now others have shown interest in the game and want a copy, there screens are different than mine so is there something in java that can shrink the images according to their screens? If not, is there one to blow the images up ( i could just draw them to fit the smallest monitor ) for the people with big monitors? Also I used paintComponent to draw the images at precise locations, I am fearfull that this will not allow me to do what I want with the size, am I wrong?

[855 byte] By [Dr_Spuda] at [2007-10-3 5:56:12]
# 1

You could scale the screen elements when you draw them, or draw the whole image and scale it using getScaledInstance, or use an AffineTransform. Also, rather than relying on concrete locations based on your screen size, try determining the screen size, then base the locations of objects on the screen to percents of the screen size. Then when you check to see if something is clicked ,or whatever, you would check the same scaled locations of the objects rather than relying on your fixed 1280x800 layout.

Good luck.

patrickmallettea at 2007-7-15 0:37:24 > top of Java-index,Other Topics,Java Game Development...
# 2
I think what you are looking for is exclusive full screen mode. try goig through http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html
DANa at 2007-7-15 0:37:24 > top of Java-index,Other Topics,Java Game Development...