hi there i\'m trying to improve myself about java2D and first of all i\'m dealing with drawing polygons. However, i can not see the polygon on frame. I read some tutorials a
Replace
protected void paintComponent(Graphics g){ super.paintComponents(g); g.setColor(Color.BLUE); g.drawPolygon(poly); }
With
protected void paint(Graphics g){ super.paint(g); g.setColor(Color.BLUE); g.drawPolygon(poly); }