Skip to content

Java Swing-based Employee Management System with CRUD operations using JDBC and MySQL. Includes a user-friendly GUI to manage employee records.

Notifications You must be signed in to change notification settings

arjunraj79/EMS-JFrame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Employee Management System (EMS)

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.


๐Ÿš€ Features

  • โœ… View All Employees


  • ๐Ÿ” Search Employee by ID


  • โž• Add New Employee (Auto-increment ID)



  • ๐Ÿ“ Update Existing Employee


  • โŒ Delete Employee with Confirmation



๐Ÿ’ป Technologies Used

  • Java (Swing)
  • MySQL
  • JDBC
  • Eclipse IDE

๐Ÿ› ๏ธ Setup Instructions

  1. Clone the repo
    git clone https://github.com/your-username/JFrame-EMS.git
    cd JFrame-EMS
    
  2. Import into Eclipse
File > Import > Existing Projects into Workspace
  1. Configure MySQL Database


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)
);
  1. 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
  1. 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

About

Java Swing-based Employee Management System with CRUD operations using JDBC and MySQL. Includes a user-friendly GUI to manage employee records.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages