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.

Note: This demo requires a Java enabled browser. If you see this message then your browser either doesn't support Java or has had Java disabled.

Click below to download the source files for DrawingProgram.