@Override protected void paintComponent(Graphics g) { super.paintComponent(g); g.drawPolyline(p.xpoints, p.ypoints, p.npoints); }