A simple text editor built in Java Swing with basic file operations and text formatting options.
- Open and save text files
- Change font size
- Choose font color
- Select font family
-
File Menu:
- Open: Allows you to open an existing text file.
- Save: Saves the current text to a file.
- Exit: Closes the application.
-
Font Options:
- Font Size Spinner: Adjust the font size dynamically.
- Font Color Button: Choose a color for the text.
- Font Family Dropdown: Select the desired font family.
-
Text Area:
- Type and edit your text in the scrollable text area.
- The changes will be reflected based on the chosen font size, color, and family.
-
Run the Application:
- Compile and run the
TextEditorclass. - The text editor window will appear.
- Compile and run the
-
File Operations:
- Open: Click on "File" in the menu bar and choose "Open" to load a text file.
- Save: Click on "File" in the menu bar and choose "Save" to save the current text.
- Exit: Click on "File" in the menu bar and choose "Exit" to close the application.
-
Text Formatting:
- Adjust the font size using the spinner.
- Choose the font color by clicking the "Color" button.
- Select the font family from the dropdown menu.
- Java Development Kit (JDK)
- Java Swing library
This text editor is open-source and available under the MIT License. Feel free to use, modify, and distribute it.