Hello, I've looked all over the web and can't seem to find how to do this, so I'll try here.
I'm working in a program in which i need to draw shapes, specifically irregular polygons. I figured the easiest way to do this, and the one that makes the most sense, is to simply get the points from mouse clicks, and add those points to an array or arrayList, and put those into the polygon class. But, i can't seem to get more than 1 point at a time from a mouse listener inside a class. Is there a way to do this? Keep in mind i can't do it for a set number of points, but will know the number of points when it executes (i.e. The user specifies they want 5 sides through a input window.