Changing JPanel Graphics g color drawing line
One way: Use your ArrayList to draw the current curve as it is being drawn, but Use a BufferedImage to draw your completed curves You would do this on mouseReleased and would draw the current curve to the BufferedImage using the current color. You’ll also need to re-initialize your ArrayList of points after drawing to … Read more