I created a canvas like this:
Canvas comp = DisplaySystem.getDisplaySystem("lwjgl").createCanvas(width,
If I set the background color of the canvas
directly after the canvas creation, I get a NullPointerException. So, I have to give comp to the SimpleCanvasImpl extended class and call comp.setBackground from the simpleSetup() method. Would be nice, if the canvas could be initialized with a specified background color within the parent class.