Final Exam-Must Pass-Ultimate Edition

1. Required steps:

1. Create a database and manually enter five pieces of data. After completion, immediately export the SQL file (for handing in the test papers)
2. Create a project (the project name must not be named after a class or name)
3. Create a new folder on the project root directory and import the Mysql database driver
4. Create three Packages: dao, pojo, ui
5. Quickly write two classes in the dao package: DB.java and BaseDao.java
6. Create an entity class in the pojo package . The name of the class is the same as the name of the database table without underscores. The properties are the same as the fields of the database table, and right-click to generate set and get methods. 7. Create an interface file in the ui package to complete related functions

Two, attention:

1. Code indentation and alignment specifications
2. There are no less than five comments
3. Class names start with capital letters, and each name has meaning (pinyin or words), and names such as aaa bbb cannot appear

3. Submission of papers:

1. The exported SQL file
2. The entire project file
3. Put the above two files into a folder named: your admission ticket number, it must be the admission ticket number! ! !

4. Related functions

1. Click the Add button in the main form to open the Add form

insert image description here
code show as below:
insert image description here

2. When the added form is closed, the entire program will not stop running (that is, the main form will not be closed). Modify the attribute value as follows:

insert image description here

3. Method definition for initializing the form

code show as below:
insert image description here

4. Fuzzy query

insert image description here
code show as below:
insert image description here

5. Realize the new data function

insert image description here
code show as below:
insert image description here

6. Delete function

insert image description here
code show as below:insert image description here

Guess you like

Origin blog.csdn.net/weixin_42634814/article/details/131399928