📄 systemitem.java
字号:
package net.aetherial.gis2.publicuse;
import java.io.File;
import java.awt.Color;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class SystemItem {
/**
* 软件打开的文件
*/
private static String fileOpenPath = "";
public static final Color TitleBackGroundColor = new Color(50,50,100);
public static final String SOFTWARE_NAME = "安徽省农村公路GPS勘测调查软件2.0-Demo";
public SystemItem() {
}
public static void setFileOpenPath(String path){
SystemItem.fileOpenPath = path;
}
public static String getFileOpenPath(){
return SystemItem.fileOpenPath;
}
public static void reset(){
SystemItem.fileOpenPath = "";
}
public static java.awt.Image getImage(String picName) {
File f = new File(picName);
java.awt.Image image = null;
try {
image = javax.imageio.ImageIO.read(f);
}
catch (Exception e) {
e.printStackTrace();
}
return image;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -