A Java Swing-based desktop application for managing employees. This project provides a graphical user interface (GUI) for performing basic CRUD operations on employee data, backed by a MySQL database using JDBC.
-
โ View All Employees
-
๐ Search Employee by ID
-
โ Add New Employee (Auto-increment ID)
-
๐ Update Existing Employee
-
โ Delete Employee with Confirmation
- Java (Swing)
- MySQL
- JDBC
- Eclipse IDE
- Clone the repo
git clone https://github.com/your-username/JFrame-EMS.git cd JFrame-EMS - Import into Eclipse
File > Import > Existing Projects into Workspace
Create a database:
CREATE DATABASE ems;
Create the employees table:
CREATE TABLE employees (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100),
salary INT,
department VARCHAR(50),
position VARCHAR(50)
);
- Add MySQL JDBC Driver
Download from: https://dev.mysql.com/downloads/connector/j/
Add mysql-connector-java-X.X.X.jar to your projectโs build path
- Update DB Credentials
Inside DBConnection.java or wherever you're connecting:
String url = "jdbc:mysql://localhost:3306/ems";
String user = "your_username";
String password = "your_password";
๐ Author Arjun โ @arjunraj79







