This is a simple Library Management System (LMS) application built using Java Swing for the graphical user interface (GUI). The application allows users to add, view, edit, and delete books in a library.
- Add Book: Add a new book to the library.
- View Books: View all books in the library in a tabular format.
- Edit Book: Edit details of an existing book by its ID.
- Delete Book: Delete a book from the library by its ID.
- Clear Fields: Clear all input fields.
- Exit Application: Exit the application.
- Clone the repository:
git clone https://github.com/your-username/library-management-system.git
- Navigate to the project directory:
cd library-management-system
- Compile the Java program:
javac LMS.java
- Run the Java program:
java LMS
-
Labels:
- Book ID
- Book Title
- Author
- Publisher
- Year Of Publication
- ISBN
- Number of Copies
-
Text Fields:
- Input fields for each of the above details.
-
Buttons:
- Add: Add a new book to the library.
- View: View all books in the library.
- Edit: Edit an existing book's details.
- Delete: Delete a book by its ID.
- Clear: Clear all input fields.
- Exit: Exit the application.
-
Add Book:
- Fill in the details for the book in the text fields.
- Click the "Add" button to add the book to the library.
-
View Books:
- Click the "View" button to display all books in the library in a new window.
-
Edit Book:
- Click the "Edit" button and enter the Book ID of the book you want to edit.
- Modify the details in the text fields.
- Click the "Edit" button again to save the changes.
-
Delete Book:
- Click the "Delete" button and enter the Book ID of the book you want to delete.
-
Clear Fields:
- Click the "Clear" button to clear all the text fields.
-
Exit Application:
- Click the "Exit" button to close the application.
Contributions are welcome! Please fork the repository and create a pull request with your changes.