Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.15 KB

File metadata and controls

37 lines (26 loc) · 1.15 KB

Design Patterns In Programming

I developed these programs, a text editor and a paint editor, at FER's course Design Patterns (OOUP). They follow SOLID principles and various design patterns which help build maintainable and scalable code.

Projects

  • Matija's_Text_Editor - a Swing text editor that implements patterns: Observer, Command, Factory, Singleton, Strategy, MVC, and Iterator.
  • Matija's_Paint_Editor - a Swing paint editor that implements patterns: Observer, Composite, Prototype, Iterator, State, Proxy, Factory, Bridge, and Visitor.

How to run

IntelliJ IDEA

  1. Open this repository in IntelliJ IDEA.
  2. Import either Matija's_Text_Editor or Matija's_Paint_Editor as a Java module.
  3. Make sure the module's src folder is marked as the source root.
  4. Run the Main class from the selected project.

Terminal

From the Design-Patterns-In-Programming directory, compile and run the text editor:

cd "Matija's_Text_Editor"
javac -d out $(find src -name "*.java")
java -cp out Main

Compile and run the paint editor:

cd ..
cd "Matija's_Paint_Editor"
javac -d out $(find src -name "*.java")
java -cp out Main