import java.awt.*;
import java.applet.*;
public class Rectangulos extends Applet
{
public void paint(Graphics rec)
{
rec.drawRect(10,10,60,50);
rec.fillRect(100,10,60,50);
rec.drawRoundRect(190,10,60,50,15,15);
rec.fillRoundRect(70,90,140,100,30,40);
}
}
No hay comentarios:
Publicar un comentario