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

📄 updatebroke.java~45~

📁 出租车管理系统,为本人毕业设计. 还请大家多多指教了
💻 JAVA~45~
📖 第 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.sql.ResultSet;
import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent;
import java.awt.Font;
import java.sql.SQLException;

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

    public static void main(String[] args) {
        Updatebroke updatebroke = new Updatebroke();
    }

    private void jbInit() throws Exception {
        this.getContentPane().setLayout(xYLayout1);
        jPanel1.setBorder(border1);
        jPanel1.setLayout(xYLayout2);
        jLabel1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel1.setText("请输入维修车辆的车牌号:");
        findcarid_t.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        findcarid_t.setText("");
        findcarid_t.addFocusListener(new FocusAdapter() {
            public void focusLost(FocusEvent focusEvent) {
                findcarid_t_focusLost(focusEvent);
            }
        });
        jButton1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton1.setText("查找");
        jButton1.addActionListener(new Updatebroke_jButton1_actionAdapter(this));
        xYLayout1.setWidth(574);
        xYLayout1.setHeight(614);
        jLabel2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel2.setBorder(BorderFactory.createEtchedBorder());
        jLabel2.setText("  公里");
        jLabel3.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel3.setBorder(BorderFactory.createEtchedBorder());
        jLabel3.setText("  维修时间:");
        reason_a.setBorder(BorderFactory.createEtchedBorder());
        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("  维修时公里数:");
        repaircarid_t.setText("");
        replacement_a.setBorder(BorderFactory.createEtchedBorder());
        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("  维修金额:");
        kilometre.setText("");
        jLabel9.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel9.setBorder(BorderFactory.createEtchedBorder());
        jLabel9.setText("  所更换零配件:");
        repairmoney_t.setText("");
        jLabel10.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel10.setBorder(BorderFactory.createEtchedBorder());
        jLabel10.setText("      维修原因:");
        jLabel11.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel11.setBorder(BorderFactory.createEtchedBorder());
        jLabel11.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);
            }
        });
        jButton3.setBackground(Color.white);
        jButton3.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton3.addActionListener(new Updatebroke_jButton3_actionAdapter(this));
        jButton4.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton4.setToolTipText("删除该记录");
        jButton4.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                jButton4_actionPerformed(e);
            }
        });
        jLabel12.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jLabel12.setBorder(BorderFactory.createEtchedBorder());
        jLabel12.setText("  元");
        this.setTitle("沈阳志远出租汽车公司出租车信息管理系统--维修信息管理窗口");
        jButton5.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton5.setToolTipText("上一条");
        jButton5.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                jButton5_actionPerformed(e);
            }
        });
        jButton6.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
        jButton6.setToolTipText("下一条");
        jButton6.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                jButton6_actionPerformed(e);
            }
        });
        jPanel1.add(jLabel1, new XYConstraints(18, 9, -1, -1));
        jPanel1.add(findcarid_t, new XYConstraints(183, 3, 141, 31));
        this.getContentPane().add(jLabel3, new XYConstraints(54, 176, -1, 31));
        this.getContentPane().add(jLabel10, new XYConstraints(56, 359, 107, 31));
        this.getContentPane().add(jLabel9, new XYConstraints(54, 264, -1, 31));
        this.getContentPane().add(jLabel6, new XYConstraints(54, 221, -1, 31));
        this.getContentPane().add(jLabel5, new XYConstraints(54, 132, -1, 31));
        this.getContentPane().add(jLabel4, new XYConstraints(54, 91, -1, 31));
        this.getContentPane().add(jLabel2, new XYConstraints(230, 221, 45, 31));
        this.getContentPane().add(kilometre, new XYConstraints(166, 221, 64, 31));
        this.getContentPane().add(jLabel11, new XYConstraints(337, 132, 82, 31));
        this.getContentPane().add(jLabel8, new XYConstraints(337, 176, -1, 31));
        this.getContentPane().add(repairfatory_t,
                                  new XYConstraints(421, 132, 91, 31));
        this.getContentPane().add(person_t, new XYConstraints(421, 92, 91, 31));
        this.getContentPane().add(jLabel7, new XYConstraints(337, 92, 82, 31));
        this.getContentPane().add(jLabel12, new XYConstraints(475, 176, 36, 32));
        this.getContentPane().add(repairmoney_t,
                                  new XYConstraints(421, 176, 54, 31));
        this.getContentPane().add(reason_a, new XYConstraints(166, 359, 346, 89));
        this.getContentPane().add(replacement_a,
                                  new XYConstraints(166, 264, 346, 88));
        this.getContentPane().add(repairtime_t,
                                  new XYConstraints(138, 176, 97, 30));
        this.getContentPane().add(repairdate_t,
                                  new XYConstraints(138, 132, 97, 30));
        this.getContentPane().add(repaircarid_t,
                                  new XYConstraints(138, 91, 97, 31));
        this.getContentPane().add(jPanel1, new XYConstraints(26, 27, 522, 43));
        jPanel1.add(jButton1, new XYConstraints(395, 3, 110, 32));
        this.getContentPane().add(jButton6, new XYConstraints(417, 534, 86, 44));

        this.getContentPane().add(jButton5, new XYConstraints(417, 473, 86, 43));
        this.getContentPane().add(jButton2, new XYConstraints(66, 473, 89, 44));
        this.getContentPane().add(jButton4, new XYConstraints(66, 534, 89, 44));
        this.getContentPane().add(jButton3, new XYConstraints(239, 496, 101, 53));
        this.setSize(575, 642);
         this.setLocation(170, 50);
        this.setVisible(true);
        addWindowListener(new WindowAdapter() {
            public void WindowClosing(WindowEvent e) {
                db.closeConnection();
                dispose();
            }
        });
    }
    DataBaseManager db=null;
    ResultSet r;
    JPanel jPanel1 = new JPanel();
    XYLayout xYLayout1 = new XYLayout();
    XYLayout xYLayout2 = new XYLayout();
    Border border1 = BorderFactory.createEtchedBorder(Color.white,
            new Color(165, 163, 151));
    JLabel jLabel1 = new JLabel();
    JTextField findcarid_t = new JTextField();
    JButton jButton1 = new JButton(new ImageIcon("image\\114.gif"));
    JLabel jLabel2 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JTextArea reason_a = new JTextArea();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel5 = new JLabel();
    JLabel jLabel6 = new JLabel();
    JTextField repaircarid_t = new JTextField();
    JTextArea replacement_a = new JTextArea();
    JLabel jLabel7 = new JLabel();
    JTextField person_t = new JTextField();
    JLabel jLabel8 = new JLabel();
    JTextField repairfatory_t = new JTextField();
    JTextField kilometre = new JTextField();
    JLabel jLabel9 = new JLabel();
    JTextField repairmoney_t = new JTextField();
    JLabel jLabel10 = new JLabel();

⌨️ 快捷键说明

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