This program allows the user to create several different types of objects on the canvas. The last object created can be moved by dragging it. The user can also change the color of the last shape created by using the JComboBox at the bottom of the window. The size of the next shape created can be set using the slider. This program demonstrates the use of the JSlider and JComboBox GUI components, along with a listener for the JComboBox.
Click below to download the source files for DrawingProgram.