The Leave Application System is a Java-based application that streamlines the process of leave requests and approvals within an institution. It features a Graphical User Interface (GUI) built with Swing, enabling students to easily submit leave applications while faculty members can manage and review these requests. The system is powered by a MySQL database that stores details about students, faculty, and their leave applications.
-
Student Portal
- Apply for leave by specifying the start date, end date, and reason.
- View the status of previous leave applications.
-
Faculty Portal
- Review pending leave applications.
- Approve or reject leave requests with comments.
-
Database Management
- Stores student and faculty details.
- Maintains leave application records with timestamps.
- Backend: Java (Swing for GUI)
- Database: MySQL
- Libraries: JDBC for database connectivity
git clone <repository-url>
cd leave-application-system- Install MySQL and create a database.
- Execute the provided SQL script to create the necessary tables.
Update the database credentials in the Java application:
Connection conn = DriverManager.getConnection(
"jdbc:mysql://localhost:3306/leave_system",
"your-username",
"your-password"
);javac LeaveApplicationSystem.java
java LeaveApplicationSystemLeaveApplicationSystem/
│── src/
│ ├── LeaveApplicationSystem.java # Main application with GUI
│ ├── DatabaseConnection.java # Manages database connectivity
│ ├── StudentPanel.java # GUI panel for students
│ ├── FacultyPanel.java # GUI panel for faculty
│── sql/
│ ├── schema.sql # Database schema script
│── README.md
- Students: Log in and submit leave applications with the required details.
- Faculty members: Review leave applications, approve or reject them, and leave comments.
- The system updates the application status and stores comments from faculty.
Contributions are welcome! Feel free to submit issues or create pull requests.