
8.2 Applets and Event Handling
Swing applets from chapter 2 and basics of swing are advised to revisit chapter 2 and chapter
10 for basics of Swing Components and their hierarchy.
8.2 Applets
Applets are small Java programs that are transported from one computer system on the network
to another. They cannot be run independently but they need a web browser or a program called
appletviewer to run on the system.
An applet, just like an application, can perform lots of tasks such as computation, taking
user inputs, passing parameters, display using graphics-rich features, play music and last
but not the least create animations. But the specialty is ...