I created the back end and front end code of a paint program, similar to a paint program you would find on Windows. I used Inheritance and mouse events to create drawing tools that allowed the user to click and drag the mouse to create rectangles, ellipses, and pencil drawings onto a panel. My program also allows the user to change certain functions like stroke width, and color of the object being drawn. I created the GUI with Swing components which allowed me to create containers for the objects to be drawn and viewed.I also used Actions to connect two different buttons to have the same function. Additionally, I created an “undo” and “redo” feature, which allows the user to remove or replace elements of the drawing.
Below is the link to download my PowerPaint application. Right-click and “save target as”.
If you would like to see my coding style for this project, click on the link below.