Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Management System (LMS)

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.

Features

  • 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.

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/library-management-system.git
  2. Navigate to the project directory:
    cd library-management-system

Usage

  1. Compile the Java program:
    javac LMS.java
  2. Run the Java program:
    java LMS

GUI Components

  • 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.

How It Works

  1. Add Book:

    • Fill in the details for the book in the text fields.
    • Click the "Add" button to add the book to the library.
  2. View Books:

    • Click the "View" button to display all books in the library in a new window.
  3. 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.
  4. Delete Book:

    • Click the "Delete" button and enter the Book ID of the book you want to delete.
  5. Clear Fields:

    • Click the "Clear" button to clear all the text fields.
  6. Exit Application:

    • Click the "Exit" button to close the application.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

About

Basic Library Manangement System using Java Swing and AWT

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages