Change the RectangleComponent for the mouse listener program in Section 10.10 so that a new rectangle is

Question:

Change the RectangleComponent for the mouse listener program in Section 10.10 so that a new rectangle is added to the component whenever the mouse is clicked. Keep an ArrayList and draw all rectangles in the paintComponent method.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: