Library Management System Based on Java and MySQL in Computer Graduation Project

Requirement analysis
A. Business process:
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Design In the
project folder, (total code: 4800+ lines) The
doc folder stores the generated document comments. You can click on the index file to view the comments of the entire project

The Src package contains five packages

Database is used to store database connection operations

Frame is used to store various window interfaces

Model is used to store the data model corresponding to each entity (table)

Out_of_date is used to store the interface written at the initial time, and later discarded and no longer called.

SqlTools is used to add, delete, modify, and check methods for storing and operating databases

The image folder is used to store related interface pictures and button pictures.
Remarks: The entrances of the different interfaces of the program have all been commented out, and MainFrame is the only entrance of the program

Program details design:

The password of the login interface is echoed, accompanied by a jump animation (multi-threading is used here to control the survival time of the thread)

The data can be modified by directly selecting the table. When the data is updated, the original data is available by default, and books can be searched in different ways;

When adding borrowing information, the current time is automatically added, and the return time is calculated. (SQL function NOW())

The interface buttons and background are redesigned with Photoshop, and the graphical user interface is friendly;

The database design reaches the third paradigm, removing all non-primary attributes' transitive dependence on any candidate keywords, and has low redundancy.

The naming of variables and methods conforms to specifications and is highly readable

Different Model entities (tables) correspond to different SqlTools operations and are stored separately, with good program reusability and easy expansion.
use

Import the SQL statement, select utf8 as the character set, otherwise the Chinese may not be displayed, and the database name is library
create database library;

It is recommended to use Mysql Front, the front desk of MySQL, which supports multiple sql statements to be executed together, and you can download it at the first link of Baidu.
http://dlsw.baidu.com/sw-search-sp/soft/6c/17997/MySQL-Front_V5.3.4.214_Setup.1435658094.exe

The database driver is added to the Java environment. The DatabaseTools.java file in the database package in the source program is related to database connection operations. The user name and password of the source program are both root, and the database name is: library. You need to change this code slightly to run on different computers. .

Login:
Librarian: user name root password root or wangyp password 123456
** reader: user name 001 password root ** (Note: the initial password of the reader in the database is root)

When using Eclipse on different computers, it may be necessary to re-establish the path of
the Java class library. This program is written with 1.8 jdk, so it is best to use 1.8 jre.
The code is run under 1.8, and even warnings will not appear, and the display effect of 1.7 and 1.6 is not good.
Both awt and swing rely on the specific implementation of the virtual machine. So different platforms perform differently. If you use javafx, the interface can be ported.
Moreover, the notebook computer used for writing is a high-resolution screen, and the display size on this machine is just right, and the interface may be too large on other computers.

The specific documentation comments have been generated, open the index file in the doc folder to view the comments of the entire project
Insert picture description here

Guess you like

Origin blog.csdn.net/bwwork/article/details/114044899