Does Each Shape requre a new Panel?
I've been trying to search the net on this topic and haven't had much luck. I am trying to draw a variety shapes each having different stroke sizes etc.
The way I am doing it now doesn't seem to be very efficient. I am creating a new class that extends jPanel and then draw my shape under the paint method. Am I going to have to do this for every little shape?
Can't I have one class with many different paint methods or something? Like paintRect or paintLine, and then in the paintRect I call g2.draw(new Rectangle2D(...)). This doesn't work but I think I want something like that.
Any help would be great. Thanks everyone.