Notepad - 2019 (Java)
Notepad is a text editor application with design patterns.
It supports:
- Creating, opening, closing, and saving files
- Finding and replacing a word in the text
- Aligning left, right, or justify the selected text
The application contains four design patterns.
The command design pattern provides two functionalities. One of them creates an empty window by the "New" button. Another one terminates the application by the "Exit" button.
The iterator design pattern provides command iteration for the command pattern in the "FileNewExitCommandInvoker.java" class.
The strategy design pattern provides two functionalities. One of them opens an existing text file with Buffered Reader, File Reader, or Scanner functions. Another one aligns the selected text left, right, or justify.
The singleton design pattern provides to open "Find All" window for once.
The application contains three unit tests.
- "AlignJustifyTest.java" for "AlignJustify.java"
- "OpenFileStrategyContextTest.java for "OpenFileStrategyContext.java"
- "OpenFileUsingBufferedReaderTest.java" for "OpenFileUsingBufferedReader.java"
Notepad doesn't require installation but does need to pre-installed Java.
Download Notepad