Skip to content

MahboobAli1/Notepad-Clone-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📝 Notepad Clone (Java Swing)

Java Swing IDE

📌 Project Overview

This project is a Notepad (Text Editor) clone developed as part of my Second Semester coursework.

It provides essential text editing features through a simple and user-friendly graphical user interface built with Java Swing. The primary objective of this project was to gain hands-on experience with GUI development, event-driven programming, object-oriented design, and file handling in Java while building a real desktop application.


⚙️ Technologies Used

  • Language: Java (JDK 8+)
  • GUI Framework: Java Swing & AWT
  • IDE: NetBeans
  • Concepts: File I/O, ActionListeners, Exception Handling

✨ Features

  • File Operations:
    • 📄 Create a new text document
    • 📂 Open existing text files
    • 💾 Save text files to local storage
    • 🖨️ Print documents
  • Editing Tools:
    • ✂️ Cut, Copy, Paste functionality
    • ✅ Select All
  • User Interface:
    • ⌨️ Keyboard shortcuts (Accelerators) for faster operation
    • ℹ️ 'About' dialog displaying application information

🧠 Concepts Demonstrated

This project highlights my understanding of the following core Java concepts:

  1. Java Swing Components: Usage of JFrame, JTextArea, JMenuBar, JScrollPane, and Dialogs.
  2. Event Handling: Implementing ActionListener to handle button clicks and menu selections.
  3. File Handling: Using FileReader, FileWriter, and BufferedReader for Input/Output operations.
  4. GUI Layouts: Managing component placement within the window.

📂 Project Structure

Notepad-Clone-Java
│
├── src
│   ├── Notepad.java      // Main entry point and GUI logic
│   └── About.java        // Logic for the 'About' window
│
├── nbproject             // NetBeans configuration files
├── dist                  // Distribution files (JAR)
├── notepad.png           // App Icon
├── windows.png           // Additional assets
└── README.md             // Documentation
---

## ▶️ How to Run the Project

1. Open **NetBeans IDE**
2. Click **Open Project**
3. Select this project folder
4. Run the `Notepad` class
5. The text editor window will appear

---

## 📸 Screenshots

<p align="center">
  <img src="notepad.png" width="120"/>
</p>

*(Screenshots can be expanded later for better visualization.)*

---

## 🚀 Future Improvements

- Add multi-tab support  
- Add font customization (size, style, color)  
- Convert project into a runnable `.jar` with installer  
- Improve UI styling  

---

## 👨‍🎓 Academic Context

- Semester: Second Semester  
- Course: Object-Oriented Programming (Java)  
- Project Type: Desktop Application  

---

## 📬 Contact

- Email: **[email protected]**  
- LinkedIn: *(to be added)*

---

<p align="center">
<i>Developed as a learning project to strengthen Java GUI and file handling concepts.</i>
</p>

About

A simple Notepad/Text Editor clone developed in Java using Swing. Supports basic text editing, copy/paste/cut, file operations (New/Open/Save/Print), and an About dialog. Demonstrates Java GUI programming and file handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors