[quote]You need to analyze it a bit more than do a couple test run.
[/quote]
^ I did give it a couple of test runs.
Well, what I’m doing in my constructor is:
public MapEditor() {
this.mainWindow = new MainWindow(this);
this.setFocusable(true);
this.requestFocus();
// Show loading screen
this.screen = new LoadingScreen(this);
// Fire up under the painting!
new Thread(this).start();
// Initialize map data
init();
// Add controllers
this.addKeyListener(new KeyController(this));
MouseController mc = new MouseController(this);
this.addMouseListener(mc);
this.addMouseMotionListener(mc);
}
I’ve tried shuffling it around a bit, but I have no idea how to avoid the exception, except for doing it like I posted a little earlier. So how would I go on about making this single threaded…?