The "Applet noninited" is due to a NullPointerException in line 19. Looks like applet2 isn't initialized properly. As it sometimes is, though, could it be a threading issue resulting in a race condition? The whole thing just runs in the event dispatch thread (but this is just a wild guess ...).
It's weird that mostly in Firefox the first run is successful and the applet is displayed properly. When reloading I get the "applet notinited" warning and the second applet isn't shown at all.
Is it possible that jvm can't find applet2? Do I need to specify the classpath via the codebase parameter in the html code? Do I have to specify the package (as the Applet's package isn't the default package but a package named "applets")?
The man who sets out to carry a cat by its tail learns something that will always be useful and which never will grow dim or doubtful.
-- Mark Twain