Screen Black, Background not drawing.

When i run my applet in my browser locally, I get a black screen. When i open my java console, it shows the following:

The latest source can be found here. Any assistance would be greatly appreciated.

Sincerely,

Java Dev

This is common problem on basic applet setup (NullPointerException on your Grahics2D/paint method). Just put your main class on pastebin and throw it here (too lazy for zip).

Ok, here you go.

Sincerely,

Java Dev

Line 56 (NullPointerException at Javinoid.update(Graphics g)):


                // AffineTransform identity == null;
                g2d.setTransform(identity);

Don’t think that you’ve set ‘identity’ to a value yet :o


identity = g2d.getTransform();

+1