基于java的Swing图书借阅管理系统(java+swing+mysql)

运行环境

Java≥8、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

092024342407

102024342407

112024342407

122024342407

132024342407

142024342407

基于java的Swing图书借阅管理系统(java+swing+mysql)

启动类:StartApplication

登录:
admin 123456

功能:读者管理、分类管理、图书管理、借阅管理、归还管理等

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
	}

}




public class newBookOrderIFrame extends JInternalFrame {

private JTextField bookName;
private JTextField zk;
private ButtonGroup buttonGroup = new ButtonGroup();
private JComboBox cbs;
private JTextField price;
private JComboBox bookType;
private JTextField operator;
private JTextField orderNumber;
private JTextField ISBN;
private JFormattedTextField orderDate;
DefaultComboBoxModel bookTypeModel;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24



/**
* 名称:图书添加窗体
*
*/
public class BookAddIFrame extends JInternalFrame {
private JComboBox publisher;
private JTextField price;
private JFormattedTextField pubDate;
private JTextField translator;
private JTextField writer;
private JTextField ISBN;
private JTextField bookName;
private JComboBox bookType;
private JButton buttonadd;
private JButton buttonclose;
DefaultComboBoxModel bookTypeModel;

Map map=new HashMap();
public BookAddIFrame() {
super();
final BorderLayout borderLayout = new BorderLayout();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20




public class UserModiAndDelIFrame extends JInternalFrame {
private JTextField textField_7;
private JTextField textField_6;
private JTextField textField_5;
private JTextField textField_4;
private JTextField textField_3;
private JTextField textField_2;
private JTextField textField_1;
private JTextField textField;
private JTable table;
private String[] str;
private ButtonGroup buttonGroup = new ButtonGroup();
private JRadioButton JRadioButton1,JRadioButton2;
private Object[][] getFileStates(List list){
String[] str = { "用户编号", "用户姓名", "性别", "年龄", "身份证", "办证日期",
"电话", "密码" };
1
2
3
4
5
6
7
8
9
10
11



public class newBookOrderIFrame extends JInternalFrame {

private JTextField bookName;
private JTextField zk;
private ButtonGroup buttonGroup = new ButtonGroup();
private JComboBox cbs;
private JTextField price;
private JComboBox bookType;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

private JComboBox comboBox_1;

private JTable table_1, table_2;

private JComboBox choice;

private JTextField textField_2;

private JScrollPane scrollPane, scrollPane_1;
private Map m=MapPz.getMap();


/**
* Launch the application
*
* @param args
*/

/**
* Create the frame
*/
String booksearch[] = { "编号", "分类", "名称", "作者", "译者","出版社", "出版日期", "单价" };

private Object[][] getselect(List list) {
Object[][] s = new Object[list.size()][8];
for (int i = 0; i < list.size(); i++) {
BookInfo book = (BookInfo) list.get(i);
s[i][0] = book.getISBN();
String booktypename=String.valueOf(MapPz.getMap().get(book.getTypeid()));
s[i][1] = booktypename;
s[i][2] = book.getBookname();
s[i][3] = book.getWriter();
s[i][4] = book.getTranslator();
s[i][5] = book.getPublisher();
s[i][6] = book.getDate();
s[i][7] = book.getPrice();

}
return s;

}

private Object[] getselectid(List list) {
Object[] ids = new Object[list.size()];
for (int i = 0; i < list.size(); i++) {
BookInfo book = new BookInfo();
ids[i] = book.getISBN();
}
return ids;
}

public BookSearchIFrame() {


项目链接:
https://javayms.github.io?id=082024342407201lz
https://javayms.pages.dev?id=082024342407201lz