Skip to content

Zelandini/Java-Composite-Shapes-GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Java Composite Shapes GUI

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.

What is this project?

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.

How to use

  1. Build the project
    javac -d bin src/*.java
  2. Run the app
    java -cp bin Main
  3. 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.

Notes

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages