import java.awt.Graphics; public class Pall{ int x, y; int r=5; public Pall(int x, int y){ this.x=x; this.y=y; } public void joonista(Graphics g){ g.fillOval(x-r, y-r, 2*r, 2*r); } }