import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.image.*; import com.sun.image.codec.jpeg.*; import java.io.*; public class Pildiredaktor6 extends Applet implements MouseListener, ActionListener{ 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", "Kopeeri", "Kleebi"}; int allaX, allaY; Choice varvivalik=new Choice(); Choice kujundivalik=new Choice(); Button salvestusnupp=new Button("Salvesta"); Button lugemisnupp=new Button("Loe"); BufferedImage puhver; public Pildiredaktor6(){ addMouseListener(this); for(int i=0; i