import java.awt.Graphics; import java.applet.Applet; import java.awt.Color; import java.awt.Font; /*import java.awt. import java.applet.*; import java.*;*/ public class cesardavid extends Applet { /** * Initializes the applet. You never need to call this directly; it is * called automatically by the system once the applet is created. */ public int z = 1; public void paint (Graphics g) { Color micolor; micolor= new Color(120,0,255); Font mifont; mifont= new Font("Courier",Font.ITALIC,60); g.setFont(mifont); for (z=40;z<120;z=z+1) { g.setColor(micolor); g.drawString ("HOLA",z,z); g.drawRect (z,z-40,150,45); for (int j=0;j<10000;j++) {}; g.setColor(Color.lightGray); g.drawString ("HOLA",z,z); g.drawRect (z,z-40,150,45); } } public void start() { } /** * Called to start the applet. You never need to call this directly; it * is called when the applet's document is visited. */ public void init() { } /** * Called to stop the applet. This is called when the applet's document is * no longer on the screen. It is guarenteed to be called before destroy() * is called. You never need to call this method directly */ public void stop() { } /** * Cleans up whatever resources are being held. If the applet is active * it is stopped. */ public void destroy() { } }