Java Library Management System with Swing Source Code
In this post we are going to cover Java Library Management system with Swing. This Library Management System project data to be stored by MySql databse. MySql JDBD driver is used to connect database with application. This Project contains below modules Admin Module: In the Library Management system as Admin Librarian Module: As a Librarian he can do This Project created with test database. This test database contains 3 tables These tables will store respected librarian, books data. This complete project is developed with Java Swing as Front End and MySql database as Back End. How to Run this Project: Code for database connection import java.sql.Connection; public class DB { } Admin Login Details: User Name: admin Password: admin Related Projects Library Management System Project in C++ Library Management System Project in Python Tags: Source Code, Java Project, Beginner Projects, Academic Projects
import java.sql.DriverManager;
public static Connection getConnection(){
Connection con=null;
try{
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","");
}catch(Exception e){System.out.println(e);}
return con;
}
299 Views