The Employee Management System is a desktop application developed in Java using Swing and AWT for the graphical user interface. It uses MySQL as the database, connected via JDBC. The application allows users to manage employee data effectively.
- MySQL-Connector-j JAR (Java ARchive)
- rs2xml JAR
- jCalender JAR
- Add Employee: Add new employee records to the database.
- Edit Employee: Update existing employee details.
- Delete Employee: Remove employee records from the database.
- Search Employee: Find employees by various criteria.
- Display Employees: View a list of all employees in a table format.
- Date Picker: Utilize JCalendar for selecting dates.
- Database Connectivity: Connect to MySQL database using JDBC.
- Java Swing: For creating the graphical user interface.
- Java AWT: For event handling and additional GUI components.
- JCalendar: For date selection.
- JDBC: For database connectivity.
- rs2xml: For converting ResultSet to TableModel.
- MySQL Database: For storing employee data.
- JConnector: MySQL Connector/J for connecting Java applications with MySQL database.
- JRE: Java Runtime Environment for running the application.
Clone the repository: bash
git clone https://github.com/yourusername/EmployeeManagementSystem.git
Install MySQL and create a database named employee_management.
Update the database URL, username, and password to match your MySQL configuration.
String url = "jdbc:mysql://localhost:3306/employee_management";
String username = "your_username";
String password = "your_password";
Build and Run the Application: i) Open the project in your preferred Java IDE (e.g., IntelliJ IDEA, Eclipse). ii) Build the project to resolve dependencies. iii) Run the Main.java file to start the application.
- Execute the Main.java file to open the Employee Management System.
- Navigate to the "Add Employee" section. Fill in the employee details and click "Submit".
- Navigate to the "Edit Employee" section. Search for the employee and update the necessary details.
- Navigate to the "Delete Employee" section. Search for the employee and click "Delete".
- Use the search functionality to find employees by name, department, or ID.
- View all employee records in a table format.
This project is licensed under the General Public License (GNU). See the LICENSE file for details.
Thanks to the developers of Java, MySQL, and all the libraries used in this project.