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

📄 updatedriver.java

📁 出租车管理系统,为本人毕业设计. 还请大家多多指教了
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package car;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
import javax.swing.*;
import java.awt.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import javax.swing.border.Border;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;
import java.sql.ResultSet;
import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent;
import java.awt.Font;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

public class Updatedriver extends JFrame {
    public Updatedriver() {
        try {
            jbInit();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

//    public static void main(String[] args) {
//        Updatedriver updatedriver = new Updatedriver();
//    }

    private void jbInit() throws Exception {
        this.setTitle(
                "沈阳志远出租汽车公司出租车信息管理系统--驾驶员更新窗口");
        this.getContentPane().setLayout(xYLayout1);
        jPanel1.setBorder(border1);
        jPanel1.setLayout(xYLayout2);
        xYLayout1.setWidth(545);
        xYLayout1.setHeight(489);
        jLabel2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel2.setBorder(BorderFactory.createEtchedBorder());
        jLabel2.setText("  驾证初领日:");
        jButton2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton2.setToolTipText("保存修改");
        jButton2.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                jButton2_actionPerformed(e);
            }
        });
        jLabel4.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel4.setBorder(BorderFactory.createEtchedBorder());
        jLabel4.setText("  驾驶证号:");
        jLabel5.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel5.setBorder(BorderFactory.createEtchedBorder());
        jLabel5.setText("  性       别:");
        jLabel6.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel6.setBorder(BorderFactory.createEtchedBorder());
        jLabel6.setText("  联系电话:");
        jLabel7.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel7.setBorder(BorderFactory.createEtchedBorder());
        jLabel7.setText("  驾驶员姓名:");
        jLabel8.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel8.setBorder(BorderFactory.createEtchedBorder());
        jLabel8.setText("  家 庭 住 址:");
        jComboBox1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton4.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton4.setToolTipText("删除该记录");
        jButton4.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                jButton4_actionPerformed(e);
            }
        });
        jLabel9.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel9.setBorder(BorderFactory.createEtchedBorder());
        jLabel9.setText("  准 驾 类 型:");
        jLabel10.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel10.setBorder(BorderFactory.createEtchedBorder());
        jLabel10.setText("  身份证号:");
        finddriverid_t.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        finddriverid_t.addKeyListener(new KeyAdapter() {
            public void keyPressed(KeyEvent e) {
                finddriverid_t_keyPressed(e);
            }
        });
        finddriverid_t.addFocusListener(new FocusAdapter() {
            public void focusLost(FocusEvent focusEvent) {
                finddriverid_t_focusLost(focusEvent);
            }
        });
        jButton1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton1.setText("查找");
        jButton1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                jButton1_actionPerformed(e);
            }
        });
        jComboBox2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jComboBox1.addItem("      男");
        jComboBox1.addItem("      女");
        jComboBox2.addItem("      A1");
        jComboBox2.addItem("      A2");
        jComboBox2.addItem("      A3");
        jComboBox2.addItem("      B1");
        jComboBox2.addItem("      B2");
        jComboBox2.addItem("      C1");
        jComboBox2.addItem("      C2");
        jComboBox2.addItem("      C3");
        jComboBox2.addItem("      C4");
        jComboBox2.addItem("      D");
        jComboBox2.addItem("      E");
        jComboBox2.addItem("      F");
        jComboBox2.addItem("      M");
        jComboBox2.addItem("      N");
        jComboBox2.addItem("      P");
        jComboBox3.addItem("   汉    族");
        jComboBox3.addItem("   满    族");
        jComboBox3.addItem("   蒙 古 族");
        jComboBox3.addItem("   回    族");
        jComboBox4.addItem("    硕    士");
        jComboBox4.addItem("    研 究 生");
        jComboBox4.addItem("    本    科");
        jComboBox4.addItem("    大    专");
        jComboBox4.addItem("    高    中");
        jComboBox4.addItem("    中    专");
        jComboBox4.addItem("    初    中");

        jButton5.setBackground(Color.white);
        jButton5.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton5.setToolTipText("返   回");
        jButton5.addActionListener(new Updatedriver_jButton5_actionAdapter(this));
        jLabel3.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel3.setBorder(BorderFactory.createEtchedBorder());
        jLabel3.setText("  民       族:");
        jComboBox3.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel11.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel11.setBorder(BorderFactory.createEtchedBorder());
        jLabel11.setText("  文 化 程 度:");
        jComboBox4.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        getdate_t.addFocusListener(new FocusAdapter() {
            public void focusLost(FocusEvent e) {
                getdate_t_focusLost(e);
            }
        });
        jPanel1.add(finddriverid_t, new XYConstraints(162, 7, 176, 35));
        jPanel1.add(jLabel1, new XYConstraints(12, 15, -1, -1));
        this.getContentPane().add(jPanel1, new XYConstraints(17, 27, 504, 54));
        this.getContentPane().add(jComboBox2,
                                  new XYConstraints(135, 322, 104, 31));
        this.getContentPane().add(jLabel5, new XYConstraints(322, 167, 88, 31));
        this.getContentPane().add(jComboBox1,
                                  new XYConstraints(412, 167, 97, 31));
        this.getContentPane().add(address_t,
                                  new XYConstraints(135, 269, 104, 31));
        this.getContentPane().add(getdate_t,
                                  new XYConstraints(135, 218, 104, 31));
        this.getContentPane().add(jLabel9, new XYConstraints(35, 322, 98, 31));
        this.getContentPane().add(jLabel7, new XYConstraints(35, 114, 98, 31));
        this.getContentPane().add(drivername_t,
                                  new XYConstraints(135, 114, 104, 31));
        this.getContentPane().add(jLabel4, new XYConstraints(322, 114, 88, 31));
        this.getContentPane().add(driveid_t, new XYConstraints(412, 114, 97, 31));
        this.getContentPane().add(jLabel6, new XYConstraints(322, 322, 88, 31));
        this.getContentPane().add(tel_t, new XYConstraints(411, 321, 97, 31));
        this.getContentPane().add(idcard_t, new XYConstraints(412, 269, 97, 31));
        this.getContentPane().add(jLabel10, new XYConstraints(322, 269, 88, 31));
        this.getContentPane().add(jLabel8, new XYConstraints(35, 270, 98, 31));
        this.getContentPane().add(jLabel2, new XYConstraints(35, 218, 98, 31));
        this.getContentPane().add(jComboBox3,
                                  new XYConstraints(412, 218, 97, 31));
        this.getContentPane().add(jLabel3, new XYConstraints(322, 218, 88, 31));
        this.getContentPane().add(jComboBox4,
                                  new XYConstraints(135, 169, 104, 29));
        this.getContentPane().add(jLabel11, new XYConstraints(35, 169, 98, 29));
        this.getContentPane().add(jButton5, new XYConstraints(230, 406, 97, 51));
        jPanel1.add(jButton1, new XYConstraints(376, 8, 114, 34));
        this.getContentPane().add(jButton4, new XYConstraints(371, 406, 99, 51));
        this.getContentPane().add(jButton2, new XYConstraints(82, 406, 103, 49));

        jLabel1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));

⌨️ 快捷键说明

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