@@ -0,0 +1,1043 @@
+import java.awt.*;%0Aimport java.applet.*;%0A%0A/*%0A%3Capplet code=%22SimpleBanner%22 width=300 height=500%3E%0A%3C/applet%3E%0A*/%0A%0A%0Apublic class SimpleBanner extends Applet implements Runnable %7B%0A    String msg = %22A Simple Moving Banner.%22;%0A    Thread t = null;%0A    int state;%0A    volatile boolean stopFlag;%0A%0A    public void init() %7B%0A        setBackground(Color.cyan);%0A        setForeground(Color.red);%0A    %7D%0A%0A    public void start() %7B %0A        t = new Thread(this);%0A        stopFlag = false;%0A        t.start();%0A    %7D%0A%0A    public void run() %7B%0A        for ( ; ; ) %7B%0A            try %7B%0A                repaint();%0A                Thread.sleep(250);%0A                if (stopFlag) %7B%0A                    break;%0A                %7D%0A            %7D%0A            catch (InterruptedException e) %7B %7D%0A        %7D%0A    %7D%0A%0A    public void stop() %7B%0A        stopFlag = true;%0A        t = null;%0A    %7D%0A%0A    public void paint(Graphics g) %7B%0A        char ch;%0A%0A        ch = msg.charAt(0);%0A        msg = msg.substring(1, msg.length());%0A        msg += ch;%0A%0A        g.drawString(msg, 50, 30);%0A    %7D%0A%0A%7D%0A

add a simple applet application