Java程序
public class DesktopCute {
public static final String VERSION = "a0.1";
private Config cfg;
private DesktopFrame df;
public DesktopCute(Config config) throws CannotLoadCuteException {
if (config == null) {
throw new NullPointerException();
}
this.cfg = config;
this.df = new DesktopFrame(this);
try {
cfg.initCute(this);
} catch (Exception ex) {
throw new CannotLoadCuteException("Cannot to load Cute", ex);
}
}
public static void main(String[] args) throws IOException, CannotLoadCuteException {
FileManger.initFiles();
try (BufferedReader br = new BufferedReader(
new InputStreamReader(
new FileInputStream(
FileManger.getFile("DefaultConfig")
)))) {
DesktopCute dc = new DesktopCute(new Config(br.readLine()));
}
Logger.getGlobal().log(Level.FINE, "Loaded files.");
Logger.getGlobal().log(Level.INFO, "DesktopCute " + VERSION + " loaded");
}
}
public static final String VERSION = "a0.1";
private Config cfg;
private DesktopFrame df;
public DesktopCute(Config config) throws CannotLoadCuteException {
if (config == null) {
throw new NullPointerException();
}
this.cfg = config;
this.df = new DesktopFrame(this);
try {
cfg.initCute(this);
} catch (Exception ex) {
throw new CannotLoadCuteException("Cannot to load Cute", ex);
}
}
public static void main(String[] args) throws IOException, CannotLoadCuteException {
FileManger.initFiles();
try (BufferedReader br = new BufferedReader(
new InputStreamReader(
new FileInputStream(
FileManger.getFile("DefaultConfig")
)))) {
DesktopCute dc = new DesktopCute(new Config(br.readLine()));
}
Logger.getGlobal().log(Level.FINE, "Loaded files.");
Logger.getGlobal().log(Level.INFO, "DesktopCute " + VERSION + " loaded");
}
}
上一篇:自我表达
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
文章热度:☆☆☆☆☆
文章难度:☆☆☆☆☆
文章质量:☆☆☆☆☆
说明:系统根据文章的热度、难度、质量自动认证,已认证的文章将参与打字排名!
本文打字排名TOP20
登录后可见