A clean, modern JavaFX text editor with dark mode, keyboard shortcuts, and safety features.
by Mandip Amgain
| 🌟 | Feature |
|---|---|
| 💾 | Open, Save, Save As… for .txt files (UTF-8) |
| 🟢 | Unsaved changes tracking with * in title |
| ��️ | Exit protection (save prompts) |
| 🌑 | Dark/Light Mode toggle |
| 🔄 | Keyboard shortcuts (cross-platform) |
| 📝 | Newline-preserving file I/O |
| ⌨️ | Customizable shortcuts in FXML |
Java : 11+ (tested with 21)
JavaFX : 19 (controls, FXML)
Maven : javafx-maven-plugin
Build Tooling : Maven 3.8+git clone https://github.com/Mandip77/Simple-TextEditor-Java.git
cd Simple-TextEditor-Java
mvn clean javafx:runRequires: Java 11+ & Maven 3.8+
Expand for details
src/
main/
java/
edu/bhcc/mandip/
App.java
Controller.java
resources/
edu/bhcc/mandip/
startpage.fxml
light.css
dark.css
pom.xml
| Action | Windows/Linux | macOS |
|---|---|---|
| Open | Ctrl + O | Cmd + O |
| Save | Ctrl + S | Cmd + S |
| Save As… | Ctrl + Shift + S | Cmd + Shift + S |
| Exit | Ctrl + Q | Cmd + Q |
Expand for common issues
- FXML/CSS not found? Ensure
startpage.fxml,light.css, anddark.cssare insrc/main/resources/edu/bhcc/mandip/. - Dark mode toggle not working? Confirm CSS files exist as above.
- macOS "Timeout" warnings: benign; ignore.
- Status bar (line/column, chars/words)
- Find / Replace
- Recent Files menu
- Zoom in/out
- Autosave & restore
PRs and suggestions welcome!
Fork, branch, and open a PR with description and screenshots/GIFs if UI changes.
MIT (proposed). Please add a LICENSE file.

