实验室设备管理系统(软件工程试验完整版)
contentPane = (JPanel) this.getContentPane();
password.addActionListener(new Log_password_actionAdapter(this)); contentPane.setLayout(xYLayout1); this.setSize(new Dimension(500, 400));
this.setTitle("实验室设备管理系统");
jLabel1.setFont(new java.awt.Font("SansSerif", 0, 25)); jLabel1.setForeground(Color.red);
jLabel1.setText("欢迎进入实验室设备管理系统");
jLabel2.setFont(new java.awt.Font("SansSerif", 0, 20)); jLabel2.setText("姓名"); jTextField1.setText("");
jLabel3.setFont(new java.awt.Font("SansSerif", 0, 20)); jLabel3.setText("密码");
jLabel4.setFont(new java.awt.Font("SansSerif", 0, 20)); jLabel4.setText("开发人员:耿德新 蔺明亮 毛冬冬");
jLabel5.setFont(new java.awt.Font("SansSerif", 0, 20)); jLabel5.setText("李章华 吕文强 顾海驹");
jLabel6.setFont(new java.awt.Font("SansSerif", 0, 15)); jLabel6.setForeground(Color.red);
jLabel6.setText("交流:gengdxin@http://www.77cn.com.cn");
contentPane.add(jLabel1, new XYConstraints(80, 10, 350, 34));
contentPane.add(jLabel2, new XYConstraints(92, 142, -1, -1)); contentPane.add(jTextField1, new XYConstraints(130, 145, 91, 26));
contentPane.add(jLabel3, new XYConstraints(222, 144, -1, -1)); contentPane.add(password, new XYConstraints(263, 144, 105, 28)); contentPane.add(jLabel4, new XYConstraints(50, 250, -1, -1)); contentPane.add(jLabel5, new XYConstraints(150, 280, -1, -1)); contentPane.add(jLabel6, new XYConstraints(100, 340, -1, -1)); }
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }
void password_actionPerformed(ActionEvent e) { try {
Frame1 Frame= new Frame1(); validID();