?? imagefilechangeevent.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 + -