import java.applet.Applet; import java.awt.Graphics; import java.awt.Color; public class Esimene extends Applet{ public void paint(Graphics ekraan){ ekraan.drawString("Tere", 30, 60); ekraan.setColor(Color.green); ekraan.drawRect(20, 50, 80, 30); } }