import javax.swing.*; import java.awt.*; public class Joonis1 extends JApplet{ public void paint(Graphics g){ g.drawRect(10, 20, 30, 40); } }