import java.applet.Applet; import java.awt.*; public class msgfly extends Applet implements Runnable{ Image img; Graphics wg; int w,h,mc; String msg[]=new String[50]; String f_name="TimesRoman"; Thread th; public void init() { w=getSize().width; h=getSize().height; img=createImage(w,h); wg=img.getGraphics(); mc=Integer.parseInt(getParameter("msgc")); for (int i=0;i w) { c++; if (c >= mc) {c=0;} f_size=1;s=0;ind*=-1; } try {th.sleep(50);} catch (InterruptedException e) {showStatus(" " +e);} } } }