Name:__________________________
1.
Write a MyMenuFrame class with these menu choices.
File
Edit
Color
Quit
Erase
Red
Green
When the user selects Quit, stop the program. When the user selects one of the
colors, change the background of the frame (i.e., change the background color of
the frame’s content pane) to the selected color. When the user selects Erase,
reset the background color to white. When the user closes the frame, the program
exits. As a minimum, your class should have a constructor, actionPerformed and
main methods.