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

📄 jipuche.java

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

import java.awt.*;

import javax.swing.*;
import java.awt.Rectangle;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.event.AncestorEvent;
import javax.swing.event.AncestorListener;

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

    private void jbInit() throws Exception {
        getContentPane().setLayout(null);
        jLabel1.setBounds(new Rectangle(30, 23, 611, 423));
        jLabel1.addAncestorListener(new JipuChe_jLabel1_ancestorAdapter(this));
        this.getContentPane().add(jLabel1);
        this.getContentPane().add(jButton1);
        jButton1.setBounds(new Rectangle(455, 454, 128, 41));
        jButton1.setFont(new java.awt.Font("宋体", Font.PLAIN, 20));
        jButton1.setText("返回");
        jButton1.addActionListener(new JipuChe_jButton1_actionAdapter(this));
        this.setSize(650,530);
        this.setVisible(true);
        setTitle("显示吉普车照片");

    }

    JLabel jLabel1 = new JLabel();
    JButton jButton1 = new JButton();
    public void jButton1_actionPerformed(ActionEvent e) {
  this.dispose();
    }

    public void jLabel1_ancestorAdded(AncestorEvent event) {
        jLabel1.setIcon(new ImageIcon("jipuche.jpg"));
    }

}


class JipuChe_jButton1_actionAdapter implements ActionListener {
    private JipuChe adaptee;
    JipuChe_jButton1_actionAdapter(JipuChe adaptee) {
        this.adaptee = adaptee;
    }

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


class JipuChe_jLabel1_ancestorAdapter implements AncestorListener {
    private JipuChe adaptee;
    JipuChe_jLabel1_ancestorAdapter(JipuChe adaptee) {
        this.adaptee = adaptee;
    }

    public void ancestorAdded(AncestorEvent event) {
        adaptee.jLabel1_ancestorAdded(event);
    }

    public void ancestorRemoved(AncestorEvent ancestorEvent) {
    }

    public void ancestorMoved(AncestorEvent ancestorEvent) {
    }
}

⌨️ 快捷键说明

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