Draw a Rectangle using Applet

import java.applet.Applet;
import java.awt.Graphics;

/**
 *
 * @author a
 */
public class NewApplet extends Applet {

 

public void paint(Graphics g)
{
g.drawRect(0,0,100,100);

}
}
Post a Comment