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
| public void init(){ JPanel panel = new JPanel(); panel.setBackground(Color.WHITE); panel.setBounds(39, 372, 568, 188); add(panel); panel.setLayout(null); panel.setVisible(false); panel.setBorder (BorderFactory.createTitledBorder ("添加员工")); JPanel panel1= new JPanel(); panel1.setBounds(39, 372, 568, 188); add(panel1); panel1.setBackground(Color.WHITE); panel1.setLayout(null); panel1.setVisible(false); panel1.setBorder (BorderFactory.createTitledBorder ("修改员工")); JPanel panel2= new JPanel(); panel2.setBounds(39, 372, 568, 188); add(panel2); panel2.setBackground(Color.WHITE); panel2.setLayout(null); panel2.setVisible(false); panel2.setBorder (BorderFactory.createTitledBorder ("查询员工 ")); JLabel add_label = new JLabel("\u59D3\u540D\uFF1A"); add_label.setFont(new Font("宋体", Font.PLAIN, 15)); add_label.setBounds(19, 24, 71, 21); panel.add(add_label); add_name = new JTextField(); add_name.setBounds(100, 24, 93, 21); panel.add(add_name); add_name.setColumns(10); JLabel add_label_1 = new JLabel("\u5BB6\u5EAD\u4F4F\u5740\uFF1A"); add_label_1.setFont(new Font("宋体", Font.PLAIN, 15)); add_label_1.setBounds(203, 100, 82, 30); panel.add(add_label_1); add_addr = new JTextField(); add_addr.setBounds(282, 105, 262, 21); panel.add(add_addr); add_addr.setColumns(10); JLabel add_label_5 = new JLabel("\u51FA\u751F\u5E74\u6708\uFF1A");
|