[Solved] Slick2D Full Screen

Hi, I’ve been working on a Slick2D game for a while now and have recently tried to see what it would look like played on full screen mode, I get an error message and I havn’t been able to fix it, any help is apprieictated.

my code


public static void main(String[] args) throws LWJGLException {

		AppGameContainer appgc;
		try {
			appgc = new AppGameContainer(new Game(NAME));
//	       appgc.setFullscreen(true);
			appgc.setDisplayMode(1200, 800, true);//This is line 70 and the game runs fine with this Boolean set to false
			appgc.setIcon("res/image/f.png");
			appgc.setShowFPS(true);
			appgc.setTargetFrameRate(60);
			appgc.setVSync(true);
			appgc.start();
		} catch (SlickException e) {
			e.printStackTrace();
		}

my error


Tue Jul 03 20:28:33 CDT 2012 INFO:Slick Build #274
org.newdawn.slick.SlickException: Failed to find value mode: 1200x800 fs=true
	at org.newdawn.slick.AppGameContainer.setDisplayMode(AppGameContainer.java:146)
	at game.Game.main(Game.java:70)

In regards to the error message, clikcing on "AppGameContainer.java:146 links me to the class but I get the message “146 is not a valid line number in org.newdawn.slick.AppGameContainer.”

Perhaps 1200x800 screen size/ratio isn’t supported in full screen mode?

Iterate over the available display modes, and pick one. Then you’ll be sure the resolution you specified will be supported.

How do I iterate over the available display modes?
I did

			DisplayMode[] modes = Display.getAvailableDisplayModes();

			for (int i=0;i<modes.length;i++) {
			    DisplayMode current = modes[i];
			    System.out.println(current.getWidth() + "x" + current.getHeight() + "x" +
			                        current.getBitsPerPixel() + " " + current.getFrequency() + "Hz");
			}
			System.out.println(appgc.getAspectRatio());

I changed 1200x800 to fit the ratios of some of those numbers but I still get the same error.

Pass the exact width and height of a supported display mode.

Thanks that worked ;D!