Welcome to the Notepad project in Java! This simple text editor is designed and implemented in Java, providing a user-friendly interface for basic text editing tasks. Whether you're a beginner looking to understand Java GUI programming or just in need of a lightweight text editor, this project is for you.
- Text Editing: Create, open, edit, and save text files with ease.
- Cut, Copy, Paste: Standard text manipulation operations for efficient editing.
- Undo/Redo: Reverse or restore changes made during editing sessions.
- Find and Replace: Locate specific text and replace it with another string.
- Word Wrap: Toggle between word wrap and no word wrap for flexible text display.
- Font Selection: Customize the appearance of text with various font options.
- Syntax Highlighting (Optional): Enable syntax highlighting for programming languages.
-
Clone the Repository:
git clone https://github.com/your-username/notepad-java.git
-
Open in IDE:
- Import the project into your favorite Java IDE (Eclipse, IntelliJ, etc.).
-
Compile and Run:
- Compile and run the
notepro.java
file to launch the Notepad application.
- Compile and run the
This project uses Java Swing for the graphical user interface. Ensure you have Java installed on your machine.
-
File Menu:
New
: Create a new text document.Open
: Open an existing text file.Save
: Save the current document.Save As
: Save the current document with a new name.Exit
: Close the Notepad application.
-
Edit Menu:
Undo
: Undo the last action.Redo
: Redo the previously undone action.Cut
: Cut the selected text.Copy
: Copy the selected text.Paste
: Paste the copied/cut text.Find
: Find a specific word or phrase.Replace
: Replace a word or phrase with another.
-
Format Menu:
Word Wrap
: Toggle word wrap for better text readability.Font
: Change the font style and size.
-
View Menu:
Syntax Highlighting
: Enable/disable syntax highlighting.
If you would like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request.
Feel free to explore, contribute, and use this Notepad project in Java! If you have any questions or suggestions, please open an issue or reach out to the project maintainers. Happy coding!