The JavaTM Tutorial
Previous Page Lesson Contents Start of Tutorial > Start of Trail > Start of Lesson Search

Trail: Writing Applets
Lesson: Practical Considerations when Writing Applets

Threads in Applets: The Full Example

Below are two PrintThread applets. (Here's the code(in a .java source file).) PrintThread calls repaint() unnecessarily every once in a while, so that you'll be able to see how its update() method gets called.


You can't run applets. Here's what you'd see if you could:



Previous Page Lesson Contents Start of Tutorial > Start of Trail > Start of Lesson Search