?? democonfigresource.java
字號:
package jaction.demo;
import jaction.utility.MessageResources;
import jaction.utility.SysLogger;
import java.io.UnsupportedEncodingException;
/**
*
*/
public class DemoConfigResource {
//-------------------------------------------------------------------------------------->構(gòu)造函數(shù)
public DemoConfigResource(){
}
//-------------------------------------------------------------------------------------->static methods
/**
* The message resources for this package.
*/
public static MessageResources messages = MessageResources.getMessageResources("jaction.demo.DemoConfig");
public static String getMessage(String key){
messages.log(key);
String msg = messages.getMessage(key);
try{
msg = new String(msg.getBytes("iso-8859-1"),"GBK");
}catch(UnsupportedEncodingException e){
System.err.println("UnsupportedEncodingException"+e);
}catch(NullPointerException nulle){
System.err.println("NullPointerException"+nulle);
}
return msg;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -