import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.image.*; public class Pildiredaktor4 extends Applet implements MouseListener{ BufferedImage pilt=new BufferedImage(300, 300, BufferedImage.TYPE_INT_RGB); Graphics2D piltg=pilt.createGraphics(); String[] varvinimed={"Punane", "Sinine", "Kollane"}; Color[] varvid={Color.red, Color.blue, Color.yellow}; String[] kujundinimed={"Tühi ovaal", "Täis ovaal", "Tühi ristkülik", "Täis ristkülik", "Joon"}; int allaX, allaY; Choice varvivalik=new Choice(); Choice kujundivalik=new Choice(); public Pildiredaktor4(){ addMouseListener(this); for(int i=0; i