How raheelnaziir/text-editor works
This is a small Swing Notepad-style editor. The workflow starts in the application entry point, opens an editor window, and lets the user edit text, search or format it, and save or open files through disk or the database. Editing capabilities are implemented within one large frame class rather than separate modules. The sampled code shows editor construction, disk saving, database access, search highlighting, and dispatch to save operations; other capabilities are documented in the README but their implementation details were not sampled.
Main entry points: EditorFrame.java Editor window · Main.java Application entry
Components 10
Editor application
- Application entry
src/Main.java - Editor window
src/EditorFrame.java
Text editing
- Text editing
src/EditorFrame.java - Search highlighting
src/EditorFrame.java - Formatting controls
src/EditorFrame.java - Undo and redo
src/EditorFrame.java
File persistence
- Text files
src/EditorFrame.java - Saved documents
src/EditorFrame.java
Other components
- User
- MySQL database
Connections 10
- User → Application entry: launches
README.md - Application entry → Editor window: creates
src/Main.java - User → Editor window: edits text
README.md - Editor window → Text editing: hosts
src/EditorFrame.java - Editor window → Search highlighting: searches
src/EditorFrame.java - Editor window → Formatting controls: formats
README.md - Editor window → Undo and redo: supports
README.md - Editor window → Text files: saves or opens
README.md - Editor window → Saved documents: saves or opens
src/EditorFrame.java - Saved documents → MySQL database: connects
src/EditorFrame.java