Library management system java version

The purpose of this paper is to master the database programming technology through the library management system, can correctly connect the database, and can query, insert, delete and modify the information in the database. Content: create a bibliographic information table in the database, including book name, author, publisher, publication date, book number and price fields. Design a GUI interface for bibliographic management. There are four tabs on the interface, namely query, insert, delete and modify. Click the query tab, and the interface appears with four text boxes: book name, author, publishing house and book number, a button and a read-only text area. The content of the text box can be empty, After entering the corresponding query information (for example, you can only enter the book name according to the book name query), click "query" on the interface Button to display the qualified bibliographic details in the text area at the bottom of the interface. Click the Insert tab, and a button will appear in the text box of book name, author, publisher, publication date, book number and price. After entering information in the text box, click the "insert" button to insert the bibliographic information into the database table. Click the delete tab. There is a title text box and a button on the interface. Enter the title and click the "delete" button to delete the bibliographic information from the database table. Click the modify tab, and a button will appear in the text box of book name, author, publisher, publication date, book number and price. The entered book name must already exist, otherwise a message box will pop up and an error message will be displayed. After entering the information, click the "modify" button, and the corresponding bibliographic information in the database table will be modified to a new value. Source code:

BookInfo. java

BookTableModel. java

AddBookDialog. java

ModifyBook. java

Program running result: main interface:

Query interface:

Add book interface:

Modify interface:

Delete operation:

Database interface:

For more information about the management system, please click the topic of management system to learn

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>