import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; public class Jorge 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 void paint (Graphics g) { Color micolor; micolor=new Color(100,50,150); g.drawString ("Hola", 7,20); g.setColor (Color.red); g.drawRect (200,50,10,100); g.setColor (micolor); g.fillRect (200,50,10,100); g.setColor (Color.red); g.drawOval (210,130,70,5); g.drawOval (400,150,30,30); g.drawLine (415,170,425,250); g.drawLine (418,208,450,170); g.drawLine (450,170,425,130); } public void init() {} /** * Called to start the applet. You never need to call this directly; it * is called when the applet's document is visited. */ public void start() { } /** * 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() { } }