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 along the bottom of the window. This program demonstrates the use of the JComboBox and JButton GUI components, as well as listeners for the JComboBox and JButtons.
Click below to download the source files for DrawingProgram.