A small Java Swing application that lets you create and manage composite shapes in a graphical interface. Use it to experiment with grouping shapes, moving them together, and visualising how composite objects behave.
This project is a CS230 assignment focusing on Java and OOP. It demonstrates the Composite design pattern using a simple GUI. It provides a canvas and controls to add basic shapes, combine them into composites, and manipulate them as a single unit.
- Build the project
javac -d bin src/*.java - Run the app
java -cp bin Main
- In the GUI
- Add shapes using the provided controls.
- Select multiple shapes and group them into a composite.
- Move or edit composites to see grouped behavior.
- If your entry point class is different from
Main, update the run command accordingly. - The project is intentionally minimal to keep the focus on the composite behavior.