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
| lblNewLabel_1 = new JLabel("New label"); lblNewLabel_1.setForeground(Color.RED); lblNewLabel_1.setFont(new Font("Dialog", Font.BOLD, 18)); lblNewLabel_1.setBounds(315, 10, 197, 28); jf.getContentPane().add(lblNewLabel_1); lblNewLabel_1.setText(LoginFrm.currentUser.getUserName());
lblNewLabel_2 = new JLabel("欢迎您,"); lblNewLabel_2.setFont(new Font("Dialog", Font.BOLD, 18)); lblNewLabel_2.setBounds(254, 11, 258, 28); jf.getContentPane().add(lblNewLabel_2);
JPanel panel = new JPanel(); panel.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "\u8FD8\u4E66", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(255, 0, 0))); panel.setBounds(23, 294, 651, 70); jf.getContentPane().add(panel); panel.setLayout(null);
JLabel lblNewLabel = new JLabel("编号:"); lblNewLabel.setBounds(90, 25, 51, 27); panel.add(lblNewLabel); lblNewLabel.setFont(new Font("幼圆", Font.BOLD, 16));
textField = new JTextField(); textField.setBounds(145, 28, 116, 24); panel.add(textField); textField.setColumns(10);
btnBackBook = new JButton("还书"); btnBackBook.setFont(new Font("Dialog", Font.BOLD, 15)); btnBackBook.setBounds(299, 25, 85, 31); panel.add(btnBackBook);
button = new JButton("退出系统"); button.setFont(new Font("Dialog", Font.BOLD, 15)); button.setBounds(407, 25, 103, 31); panel.add(button);
panel_2 = new JPanel(); panel_2.setBorder(new TitledBorder(null, "借阅信息", TitledBorder.LEADING, TitledBorder.TOP, null, Color.RED)); panel_2.setBounds(23, 374, 651, 346); jf.getContentPane().add(panel_2); panel_2.setLayout(null);
textField_1 = new JTextField(); textField_1.setColumns(10); textField_1.setBounds(252, 23, 135, 27); panel_2.add(textField_1);
button_1 = new JButton("查询");
|