1. Write a GUI application in Java using Swing that has three buttons and a drawing area.
2. Give the window an initial size of 500 x 500 pixels, and put your name in the menu bar.
3. The buttons should be at the bottom of the window and be labeled "Name", "Oval" and "Rectangle".
4. The drawing area should cover the remainder of the window.
5. When it starts, the program should show nothing in the drawing area.
6. Pressing one of the buttons must toggle (turn on or off) the display of one of three things, any or all of which must be viewable simultaneously.
1. Pressing "Name" should toggle the display of your name.
2. Pressing "Oval" should toggle drawing an oval centered on the window.
3. Pressing "Rectangle" should toggle drawing a rectangle centered on the window. The rectangle and oval should not be filled, so that all three things can be seen.
7. When drawn, each of the items should be a different color of your choice.
8. When the user resizes the window, the displayed items must stay at the center of the drawing area.
9. When the program displays an oval or a rectangle, it must draw the figure with 3/4 the width and height of the display area, resizing it when the window gets resized. The text does not have to resize, but must remain in the center of the window.
10. (Optional) Make a fourth button called "special" that does something else notdescribed in the assignment, such as change the background color.