In the applet life cycle, when is the `paint()` method called?
The `paint()` method is called periodically to refresh the appletâ€™s content, even if no changes are made.
Thatâ€™s incorrect. `paint()` is only called when the applet needs to refresh its display, such as after resizing or repainting.
Can you describe what causes `paint()` to be called and how it fits into the overall life cycle of an applet?