.setLocation() doesn't seem to work (used in draw method) (Eclipse)

Hey!

I cant seem to get this .setLocation() to work. .setTitle() works just fine btw. I tried surface.setLocation() as well as frame.setLocation(). Either doesn't work. Could it be that its a specific issue with Eclipse somehow? Here's some code:

public static boolean firstTimeDraw = true;
//...
public void draw() {
    if (firstTimeDraw) {
        frame.setLocation(990, 512);
        firstTimeDraw = false;
    }
}
//...

regards, TPRammus

Sign In or Register to comment.