import java.awt.*; import java.awt.event.*; import java.applet.Applet; import java.util.*; import java.lang.*; public class graafik extends Applet implements ActionListener{ TextField a=new TextField("1",2); TextField b=new TextField("1",2); double aa=1; double bb=1; int samm=20; int t=0; int peet=0; public graafik(){ add(a); add(b); a.addActionListener(this); b.addActionListener(this); } public void actionPerformed(ActionEvent sundmus){ aa=Double.parseDouble(a.getText()); bb=Double.parseDouble(b.getText()); paint(getGraphics()); } public void paint (Graphics g){ g.setColor(Color.lightGray); g.fillRect(0,0,getSize().width,getSize().height); g.setColor(Color.black); g.drawLine(270,100,270,400); g.drawLine(270-150,250,270+150,250); while (peet<300){ t++; peet=peet+samm; } for (int f=0; f