Applet Instances

There is no restriction as to how many instances of one applet type can be created. The user might choose to add more than one HelloWorldApplet applets to his panels. This can have some implications on the design used to write applets. The most important implication is that it is generally wrong to have global variables to keep a state specific to an applet instance.

Using global variables in an applet can cause problems when the applet is instantiated several times.