A simple text editor built in Java with a GUI. This editor allows users to create, open, edit, and save plain text files. It uses Java Swing for the graphical interface and provides basic text editing functionalities.
- Create new text files.
- Open and edit existing text files.
- Save text files.
- Basic text editing operations (cut, copy, paste).
- Simple and user-friendly interface.
-
Clone this repository:
git clone https://github.com/YiqiWang128/java-text-editor.git
-
Compile and run the program:
Ensure you have Java 8 or higher installed. Then, compile and run the program with the following commands:
javac Notepad.java java Notepad
- New File: Click
File>Newto start a new document. - Open File: Click
File>Opento open an existing text file. - Save File: Click
File>Saveto save your document.
Ctrl + N: New FileCtrl + O: Open FileCtrl + S: Save FileCtrl + C: CopyCtrl + X: CutCtrl + V: Paste
- Java 8 or higher