Skip to content

haaaarsh4/Text-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Text Editor

A simple text editor built in Java Swing with basic file operations and text formatting options.

Features

  • Open and save text files
  • Change font size
  • Choose font color
  • Select font family

How to Use

  1. File Menu:

    • Open: Allows you to open an existing text file.
    • Save: Saves the current text to a file.
    • Exit: Closes the application.
  2. 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.
  3. 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.

Usage

  1. Run the Application:

    • Compile and run the TextEditor class.
    • The text editor window will appear.
  2. 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.
  3. 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.

Requirements

  • Java Development Kit (JDK)
  • Java Swing library

License

This text editor is open-source and available under the MIT License. Feel free to use, modify, and distribute it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages