import java.awt.*; import java.awt.event.*; import java.applet.Applet; import java.lang.Thread; public class Graafik2 extends Panel implements Runnable, ActionListener{ int nr=100; double algnurk=0; /*public Graafik2(){ new Thread(this).start(); }*/ TextField tf=new TextField("10"); public Graafik2(){ new Thread(this).start(); add(tf); tf.addActionListener(this); } public void actionPerformed(ActionEvent e){ nr=Integer.parseInt(tf.getText().trim()); repaint(); } public void paint(Graphics g){ int arv=Integer.parseInt(tf.getText().trim()); int nurkadearv=arv; int raadius=75; int raadius2=100; double nurk=algnurk; g.drawOval(getWidth()/2-75, getHeight()/2-75, 150, 150); for(int i=0; i