⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updatauser.java~3~

📁 车辆管理系统
💻 JAVA~3~
字号:
package carmanage;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Rectangle;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2008</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class UpdataUser extends JFrame {
    public UpdataUser() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        getContentPane().setLayout(null);
        jLabel1.setFont(new java.awt.Font("宋体", Font.PLAIN, 30));
        jLabel1.setText("修改用户信息");
        jLabel1.setBounds(new Rectangle(114, 25, 207, 43));
        jButton1.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jButton2.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jLabel2.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jLabel2.setText("用户名:");
        jLabel2.setBounds(new Rectangle(21, 86, 61, 36));
        jLabel3.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jLabel3.setText("原密码:");
        jLabel3.setBounds(new Rectangle(18, 140, 87, 24));
        jLabel4.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jLabel4.setText("新密码:");
        jLabel4.setBounds(new Rectangle(25, 182, 71, 38));
        jButton2.setBounds(new Rectangle(215, 252, 99, 39));
        jButton2.setText("返回");
        jButton2.addActionListener(new UpdataUser_jButton2_actionAdapter(this));
        jTextField1.setBounds(new Rectangle(155, 93, 182, 32));
        jPasswordField1.setBounds(new Rectangle(156, 137, 179, 30));
        jPasswordField2.setBounds(new Rectangle(157, 186, 178, 32));
        this.getContentPane().add(jButton1);
        this.getContentPane().add(jButton2);
        this.getContentPane().add(jLabel3);
        this.getContentPane().add(jLabel2);
        this.getContentPane().add(jLabel4);
        this.getContentPane().add(jLabel1);
        this.getContentPane().add(jTextField1);
        this.getContentPane().add(jPasswordField1);
        this.getContentPane().add(jPasswordField2);
        jButton1.setBounds(new Rectangle(29, 253, 101, 37));
        jButton1.setText("修改");
        setTitle("修改用户");
        this.setSize(400,400);
        this.setVisible(true);
    }

    JLabel jLabel1 = new JLabel();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JLabel jLabel2 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JTextField jTextField1 = new JTextField();
    JPasswordField jPasswordField1 = new JPasswordField();
    JPasswordField jPasswordField2 = new JPasswordField();
    public void jButton2_actionPerformed(ActionEvent e) {
   this.dispose();
    }
}


class UpdataUser_jButton2_actionAdapter implements ActionListener {
    private UpdataUser adaptee;
    UpdataUser_jButton2_actionAdapter(UpdataUser adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButton2_actionPerformed(e);
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -