Whenever the Frame gets created, resized, or moved, paint isautomatically called. The same is true for Applets.