Question: Create, test, and document a Java program with the following classes. Figure: This abstract class represents a figure that can be drawn on the GUI.
Create, test, and document a Java program with the following classes.
Figure: This abstract class represents a figure that can be drawn on the GUI.
Rectangle: This extends Figure and implements the functionality needed to draw filled rectangles with a given color.
Circle: This extends Figure and implements the functionality needed to draw filled circles with a given color.
The current date should appear in the bottom left corner of the drawing. All figures appearing in the GUI should be listed with their String representations in the JTextArea appearing on the right side.
the user clicks either circle or rectangle, then color (order does not matter), then draws the figure by clicking on the canvas on the left side. (The shape should appear where the user clicks, the size of the shape can be random)
When the exit button is clicked, serialize the figures and the content of the text area to disk in a file named figures. When the GUI is started, check for the existence of a file named figures and if it exists, open it to populate the figures and the corresponding list in the text area. You must not assume any specific directory structure. For example, do not write to a file named C:\Temp\figures. Instead, use figures to ensure that it gets stored in or retrieved from the current directory
GUI should appear like this: (minor deviations are acceptable)

Le Figures GUI Rectangle [x=32, y-63, width=46, height:45, color ircle [x=1 18, y.128, radius-30, color=java.awt.c Rectangle -123, y-39, width-81, height-60, col Red Green Blue Rectangle Circle Exit 15-Jan-2015
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
