Why is this code producing a blank applet?

Didn’t get an answer on irc, so I’ll ask here. :slight_smile:

[quote]21:10 < RylandAlmanza> I’ve always used either slick or lwjgl, but I’m using java2d for the first time now (for java4k.)
21:11 < RylandAlmanza> Any idea why this code produces a blank applet? https://gist.github.com/4043828
[/quote]

Maby you try to paint the image before it was loaded.

There are some nice Skeleton code examples in the Java4K section to base your development on.

Does the method init() get called?

Yes, the browser handles that for applets.

[quote]init()
Called by the browser or applet viewer to inform this applet that it has been loaded into the system.
[/quote]