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

📄 imagefilechangeevent.java

📁 此文档针对开发人员和测试人员。第二章对软件进行了全面的描述。第三章对接口进行了分析。第四章对软件实现的功能进行概述。第五章对软件后续开发实现提出的要求。第六章提出其他一些在软件开发过程中需要注意的问题
💻 JAVA
字号:
package com.ciash.common.gui.event;

import java.awt.Image;
import java.io.File;

import javax.swing.ImageIcon;

/**
 * 图片文件选择事件,当选择时被创建
 */

public class ImageFileChangeEvent {

    private String path;

    private File file;

    private Image image;

    public String getPath(){
        return path;
    }

    public File getFile(){
        return file;
    }

    public Image getImage(){
        return image;
    }

    public ImageFileChangeEvent(String boot) {
        if(boot != null){
            this.file = new File(boot);
            this.path = boot;
            this.image = new ImageIcon(boot).getImage();
        }
        else{
            this.file = null;
            this.path = null;
            this.image = null;
        }
    }

}

⌨️ 快捷键说明

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