Using graphics object in mousePressed
<p>In the method mousePressed, i can't use any graphics related methods, for example this code will run but won't work</p>

<pre><code>import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.BasicGameState;
import org.newdawn.slick.state.StateBasedGame;

public class Control extends BasicGameState {
public static final int ID = 1;

public Graphics g = new Graphics();

public void init(GameContainer container, StateBasedGame game) throws SlickException{
}

public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException {
}

public void update(GameContainer container, StateBasedGame game, int delta) {
}

public void mousePressed(int button, int x, int y){
    g.drawRect(x,y,2,2);
}

public int getID() {
    return ID;
}

}
</code></pre>

<p>why can nothing graphics orientated run through the method?</p>

<p>thanks - Shamus</p>
