Figure 14.10 Menu of the applet “marquee” to get clone
Explanation:In this program, a marquee has been developed that moves from left to right. The controlling
of marquee is done using a separate thread. For this purpose, the applet window class marqueeimplements
Runnable interface. In the init method the foreground and background color, and font have been set.
An instance t is also taken of Thread class. In the start method of Applet Thread instance tis
initialized and t.start calls the run method. (Recall start method of Thread class ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.