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
JFrame does not extend JComponent so does not override paintComponent. You can check this by adding the @Override annotation.
To get this functionality extract paintComponent to a new class which extends JComponent. Don't forget to call super.paintComponent(g) rather than super.paintComponents(g).