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

📄 xianshi.java~13~

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

import java.awt.*;

import javax.swing.*;
import java.awt.Rectangle;
import java.awt.Font;
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 XianShi extends JFrame {
    public XianShi() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        getContentPane().setLayout(null);
        jButton1.setBounds(new Rectangle(95, 29, 218, 54));
        jButton1.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jButton1.setText("显示出租车照片");
        jButton1.addActionListener(new XianShi_jButton1_actionAdapter(this));
        jButton4.setBounds(new Rectangle(96, 249, 216, 48));
        jButton4.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jButton4.setText("显示高级跑车照片");
        jButton4.addActionListener(new XianShi_jButton4_actionAdapter(this));
        jButton3.setBounds(new Rectangle(95, 182, 217, 47));
        jButton3.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jButton3.setText("显示吉普车照片");
        jButton3.addActionListener(new XianShi_jButton3_actionAdapter(this));
        jButton2.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jButton2.addActionListener(new XianShi_jButton2_actionAdapter(this));
        jButton6.setBounds(new Rectangle(95, 319, 216, 52));
        jButton6.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jButton6.setText("显示货车照片");
        jButton6.addActionListener(new XianShi_jButton6_actionAdapter(this));
        jButton5.addActionListener(new XianShi_jButton5_actionAdapter(this));
        jButton7.setBounds(new Rectangle(96, 391, 212, 57));
        jButton7.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jButton7.setText("显示公交车照片");
        jButton7.addActionListener(new XianShi_jButton7_actionAdapter(this));
        this.getContentPane().add(jButton1);
        jButton5.setBounds(new Rectangle(95, 481, 214, 50));
        jButton5.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jButton5.setText("返回");
        this.getContentPane().add(jButton2);
        this.getContentPane().add(jButton3);
        this.getContentPane().add(jButton4);
        this.getContentPane().add(jButton6);
        this.getContentPane().add(jButton5);
        this.getContentPane().add(jButton7);
        jButton2.setBounds(new Rectangle(95, 105, 217, 53));
        jButton2.setText("显示轿车照片");
        this.setSize(370,600);
        this.setVisible(true);
        setTitle("显示车照片");
    }

    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JButton jButton3 = new JButton();
    JButton jButton4 = new JButton();
    JButton jButton5 = new JButton();
    JButton jButton6 = new JButton();
    JButton jButton7 = new JButton();
    public void jButton5_actionPerformed(ActionEvent e) {
   this.dispose();
    }

    public void jButton1_actionPerformed(ActionEvent e) {
Taxi taxi =new Taxi();
    }

    public void jButton6_actionPerformed(ActionEvent e) {
     HuoChe huoche =new HuoChe();
    }

    public void jButton2_actionPerformed(ActionEvent e) {
     JiaoChe jiaoche =new JiaoChe();
    }

    public void jButton3_actionPerformed(ActionEvent e) {
     JipuChe jipuche=new JipuChe();
    }

    public void jButton4_actionPerformed(ActionEvent e) {
      PaoChe paoche =new PaoChe();
    }

    public void jButton7_actionPerformed(ActionEvent e) {

    }
}


class XianShi_jButton3_actionAdapter implements ActionListener {
    private XianShi adaptee;
    XianShi_jButton3_actionAdapter(XianShi adaptee) {
        this.adaptee = adaptee;
    }

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


class XianShi_jButton1_actionAdapter implements ActionListener {
    private XianShi adaptee;
    XianShi_jButton1_actionAdapter(XianShi adaptee) {
        this.adaptee = adaptee;
    }

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


class XianShi_jButton6_actionAdapter implements ActionListener {
    private XianShi adaptee;
    XianShi_jButton6_actionAdapter(XianShi adaptee) {
        this.adaptee = adaptee;
    }

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


class XianShi_jButton7_actionAdapter implements ActionListener {
    private XianShi adaptee;
    XianShi_jButton7_actionAdapter(XianShi adaptee) {
        this.adaptee = adaptee;
    }

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


class XianShi_jButton2_actionAdapter implements ActionListener {
    private XianShi adaptee;
    XianShi_jButton2_actionAdapter(XianShi adaptee) {
        this.adaptee = adaptee;
    }

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


class XianShi_jButton4_actionAdapter implements ActionListener {
    private XianShi adaptee;
    XianShi_jButton4_actionAdapter(XianShi adaptee) {
        this.adaptee = adaptee;
    }

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


class XianShi_jButton5_actionAdapter implements ActionListener {
    private XianShi adaptee;
    XianShi_jButton5_actionAdapter(XianShi adaptee) {
        this.adaptee = adaptee;
    }

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

⌨️ 快捷键说明

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