import java.awt.*; import java.applet.*; public class Teljed extends Applet{ public void paint(Graphics g){ g.drawLine(100, 0, 100, getHeight()); g.drawLine( 0, 200, getWidth(), 200); for(int x=-100; x<100; x++){ g.drawOval(x+100, 200-x*x, 1, 1); } } public static void main(String argumendid[]){ Frame f=new Frame("Ruutfunktsiooni graafik"); f.add(new Teljed()); f.setSize(250, 250); f.setVisible(true); } }