In Netbeans or Eclipse,write Java program to display shapes and colors that the user specifies through a GUI.
In Netbeans or Eclipse,write Java program to display shapes and colors that the user specifies through a GUI.
The GUI should contain a JPanel on which the shapes will be drawn. The program should allow the user to select a shape and a color using whatever GUI components you think are appropriate. For example, in my version, I selected the shape and color from JComboBoxes, and then had a JButton to make the program draw the shape…screenshot end result.