import java.applet.Applet; import java.awt.*; public class r extends Applet { public void paint(Graphics g){ g.setColor(Color.green); g.drawOval(55, 55, 140, 140); //suur ratas g.drawOval(54, 54, 141, 141); g.setColor(Color.black); g.drawLine(129, 55, 129, 195); // risti vertikaal x1, y1, x2, y2 g.drawLine(55, 129, 195, 129); //risti horisontaal telg g.drawLine(170, 75, 86, 180); g.drawLine(186, 102, 62, 158); g.drawLine(85, 65, 165, 180); g.drawLine(65, 90, 185, 160); g.setColor(Color.black); g.fillOval(118, 118, 20, 20); //keskosa } public static void main(String argumendid[]){ Frame f=new Frame("Ratas"); f.add(new r()); f.setSize(300, 300); f.setLocation(150,200); f.setVisible(true); } }