Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Notepad

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

Design Patterns

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.

Unit Tests

The application contains three unit tests.

  • "AlignJustifyTest.java" for "AlignJustify.java"
  • "OpenFileStrategyContextTest.java for "OpenFileStrategyContext.java"
  • "OpenFileUsingBufferedReaderTest.java" for "OpenFileUsingBufferedReader.java"

UML

Notepad doesn't require installation but does need to pre-installed Java.

Download Notepad

About

Notepad - 2019 (Java)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages