posted 19 years ago
One possible problem is initializing offscreen in the init method. There may not be any size info or graphics context available unitl the Applet has been realized, ie, made visible. The size method is deprecated, see the method detail in the Component api.
Here are some suggestions/possibilities in uncompiled pseudo–code: