📄 listing7-30_localizationtrap1.txt
字号:
// Invalid Locale call, because the key is not given directly
// never do this:
String key = "menu.StartGame";
this.menuScreen.append( Locale.get( key ), null ); // this will crash!!
// Instead, use the key directly in the call as in this example:
this.menuScreen.append( Locale.get( "menu.StartGame" ), null ); // this works fine
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -