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 Pildiredaktor7 extends Applet implements MouseListener, ActionListener{ int pildilaius=300, pildikorgus=300; int suurendus=2; BufferedImage pilt=new BufferedImage(pildilaius, pildikorgus, 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 Pildiredaktor7(){ addMouseListener(this); for(int i=0; i