internationalization.java
来自「利用設定來製作簡易地 applet, 可以很快速的寫出 applet 來.」· Java 代码 · 共 22 行
JAVA
22 行
package thinlet.drafts;
import java.util.*;
import thinlet.*;
/**
*
*/
public class Internationalization {
/**
*
*/
public void update(Thinlet thinlet, Object combobox, int selected, Object panel) throws Exception {
String locale = (String) thinlet.getProperty(thinlet.getItem(combobox, selected), "locale");
ResourceBundle bundle = ResourceBundle.getBundle("thinlet.drafts.i18n", new Locale(locale, "", ""));
thinlet.setResourceBundle(bundle);
thinlet.add(panel, thinlet.parse("i18npanel.xml"));
thinlet.setResourceBundle(null);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?