import com.sun.image.codec.jpeg.*; import java.lang.String.*; import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.io.*; public class Redaktor extends Applet implements MouseListener, ActionListener { int allaX, allaY; int suurendus=2; int pildilaius=1024, pildikorgus=768; BufferedImage pilt=new BufferedImage(pildilaius, pildikorgus, BufferedImage.TYPE_INT_RGB); Graphics2D piltg=pilt.createGraphics(); String varvinimed[]={"kollane","punane","sinine", "must", "roheline"}; Color varvid[]={Color.yellow, Color.red, Color.blue, Color.black, Color.green}; Choice valik=new Choice(); TextField avanimi=new TextField(10); TextField salvnimi=new TextField(10); String kujunimed[]={"ruut", "t?idetud ruut", "ring", "t?idetud ring", "joon", "kopi", "kleebi"}; Choice valik2=new Choice(); Button salvesta=new Button("salvesta fail"); Button ava=new Button("ava fail"); BufferedImage puhver; public Redaktor(){ addMouseListener(this); for(int i=0; i