


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















java.awt.Component class :
import java.awt.; import java.applet.; /* */ public class SampleBanner extends Applet implements Runnable{ String msg = "A Simple Moving Banner."; Thread t = null; int state; boolean stopFlag; public void init() { setBackground(Color.cyan); setForeground(Color.red); }
public void stop() { stopFlag = true; t = null; } public void paint(Graphics g) { g.drawString(msg, 50, 30); showStatus("This is shown in the status window."); } }
Passing Parameters to Applets :