This is a simple Library Management System implemented in Java Swing. It allows users to add, view, edit, and delete books from the library.
- Add a book with details such as book ID, title, author, publisher, year of publication, ISBN, and number of copies.
- View all the books in a table format.
- Edit the details of a book by entering the book ID.
- Delete a book by entering the book ID.
- Clear all the input fields.
- Exit the application.
- Java Development Kit (JDK) installed on your system.
- Any Java IDE or text editor.
- Clone the repository or download the source code files.
- Open the project in your preferred Java IDE.
- Build and run the
LibraryManagement.java
file. - The Library Management System application will open in a window.
-
Add a Book:
- Enter the details of the book in the respective input fields.
- Click the "Add" button to add the book to the library.
- A success message will be displayed, and the fields will be cleared.
-
View Books:
- Click the "View" button to see all the books in a table format.
- The table displays the book ID, title, author, publisher, year of publication, ISBN, and number of copies.
-
Edit a Book:
- Click the "Edit" button.
- Enter the book ID of the book you want to edit.
- Modify the details in the input fields.
- Click the "Edit" button again to save the changes.
- A success message will be displayed, and the fields will be cleared.
-
Delete a Book:
- Click the "Delete" button.
- Enter the book ID of the book you want to delete.
- Click the "Delete" button again to confirm the deletion.
- A success message will be displayed, and the fields will be cleared.
-
Clear Fields:
- Click the "Clear" button to clear all the input fields.
-
Exit the Application:
- Click the "Exit" button to close the application.
Contributions to the Library Management System are welcome! If you find any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue.