A Java-based desktop application for managing library operations efficiently.
This project demonstrates Object-Oriented Programming (OOP), Swing GUI, and SQLite database connectivity.
- Book Management β Add, view, and track books (Title, Author, ISBN, Genre, Availability).
- User Management β Register and manage library users.
- Circulation Control β Borrow and return books with real-time updates.
- Borrowing Rules β Enforces maximum borrowing limits (3 books per user).
- Transaction History β Maintains borrowing and returning records.
- Database-Driven β Uses SQLite for lightweight, persistent storage.
LibraryProject/ βββ Main.java # Entry point βββ Book.java # Book entity βββ BorrowTransaction.java # Borrow/Return records βββ DatabaseHelper.java # Handles SQLite connection βββ Librarian.java # Librarian role (extends User) βββ Library.java # Business logic βββ User.java # User entity βββ LibrarySwingUI.java # Swing-based GUI
- Java (JDK 8 or higher)
- Swing (Graphical User Interface)
- SQLite (Database)
- JDBC (Database connectivity)
- Clone the repository:
git clone https://github.com/your-username/Library-Management-System.git cd Library-Management-System - Compile project:
javac -d out -cp "sqlite-jdbc-3.50.3.0.jar" src/com/example/library/*.java src/com/example/ui/*.java src/com/example/app/*.java
- Run project:
java -cp "out;sqlite-jdbc-3.50.3.0.jar" com.example.app.Main This line was added to test the Pair Extraordinaire badge! π!