Small and medium companies in India still prepare monthly salaries in Excel sheets. Every month the accountant adds attendance, leave and loss-of-pay days by hand, applies PF, ESI and professional tax rules from memory, tracks salary advances in a separate book and types each payslip. The work takes days and small mistakes lead to wrong salaries and complaints.
PayRoll Pro – Payroll Payslip Generator Java project is a Java Swing desktop application with a MySQL database that automates the complete monthly salary cycle. HR Staff maintains employees, enters monthly attendance (filled automatically from approved leaves) and prints payslips. The Admin defines salary structures, approves leaves, gives advances, runs the payroll and prints reports. The payroll engine calculates pro-rata earnings, overtime, PF (12%, Rs. 15,000 ceiling), ESI (0.75% up to Rs. 21,000), Maharashtra professional tax, TDS and advance EMI, and saves all payslips of a month in one database transaction.
How it works
- Admin sets up departments, employees and their salary structures
- HR enters leave requests; Admin approves or rejects them (quota and overlap checked)
- At month end HR fills attendance from leaves, adds overtime and saves it
- Admin calculates the payroll, checks the preview of each payslip and saves all payslips in one transaction (advance EMI recovered)
- Payslip PDFs, salary register and bank transfer statement are printed; after payment the month is marked PAID
Users
- Admin – Dashboard, Departments, Employees, Salary Structure (live preview), Leave approval, Salary Advances, Attendance, Payroll Run (calculate, preview, save, cancel unpaid, mark paid), Payslips, Reports (4 PDF reports), Users, Settings & Backup, Profile
- HR Staff – Dashboard, Employees (add / edit), Attendance with "Fill from Leaves", Leave requests with balance check, Salary advances (view), Payslips (view / PDF), Profile
Highlights
- 62 Java files (about 9,800 lines), 13 screens + 3 dialogs, 9 MySQL tables, 5 PDF outputs, 2 roles, 63 automated test cases (all passed).
- Salary of a full month for all employees is calculated and saved in seconds without formula errors
- PF, ESI, PT and OT rules are editable from Settings - no code change when limits change
- Works fully offline on an office PC; data stays inside the company
- Transactions, unique keys and validations keep the data consistent; paid months are locked
- Sample data and demo logins so every screen has data on the first run
What you get
- Complete Java source code (Eclipse project, runs in NetBeans / IntelliJ too)
- MySQL database SQL file with sample data
- Project report (55 pages) with all diagrams, abstract, project explanation with viva questions
- Setup guide and README with a 10-minute demo script
- Setup help from Ananda Technologies
Who can use this project
BCA and BSc (CS / IT) final year students who want a Java Swing MySQL project with source code that is easy to explain in viva and has enough content for 3 students and 3 college demos.
Frequently asked questions
- Does it need internet? No, it is a desktop application and works fully offline.
- Which IDE do I need? Eclipse is used in the setup guide; NetBeans and IntelliJ also open it because the screens are plain Swing code.
- Can 3 students share this project? Yes, the README gives a 3-student split and a 3-demo plan.
- Is the report editable? Yes, the report is given in Word and PDF.