-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
6 changed files
with
190 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# basic-text-editor | ||
|
||
A basic Text Editor created using Java and Swing. | ||
|
||
## Functionalities Included: | ||
- A 1920x1080 window | ||
- Loading text files from hard drive for editing | ||
- Finding occurences of a specific string using the search bar on the editor window | ||
- Saving file to hard drive | ||
|
||
## Supported File Types | ||
- .txt | ||
- .rtf | ||
- .csv | ||
- .json | ||
- .md | ||
- other forms of text files... | ||
|
||
Makes it a good tool for cleaning data and finding specific entries used in fields such as Data Science which deal with these file formats, with an easy to use GUI. | ||
|
||
## How to Run: | ||
- Download here: [TextEditor.exe](https://github.com/kritgrover/basic-text-editor/releases) | ||
- Run | ||
|
||
All source files used to compile executable are in the 'src' folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
/* MatchedGroup Class | ||
* Methods to return Start and End Indexes for given String | ||
*/ | ||
public class MatchedGroup { | ||
private final int startIndex; | ||
private final int endIndex; | ||
|
||
|
||
//Constructor to set indexes | ||
public MatchedGroup(int start, int end) { | ||
this.startIndex = start; | ||
this.endIndex = end; | ||
} | ||
|
||
public int getEndIndex() { | ||
return endIndex; | ||
} | ||
|
||
|
||
//Getter for StartIndex | ||
public int getStartIndex() { | ||
return startIndex; | ||
} | ||
|
||
//Getter for EndIndex | ||
public int getEndIndex() { | ||
return endIndex; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import java.util.List; | ||
|
||
//Handler interface for TextSearcher implementation | ||
public interface SearchCompleteHandler { | ||
void handle(List<MatchedGroup> result); | ||
} |
Oops, something went wrong.