本文整理汇总了Java中javax.swing.JCheckBoxMenuItem.setText方法的典型用法代码示例。如果您正苦于以下问题:Java JCheckBoxMenuItem.setText方法的具体用法?Java JCheckBoxMenuItem.setText怎么用?Java JCheckBoxMenuItem.setText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.swing.JCheckBoxMenuItem
的用法示例。
在下文中一共展示了JCheckBoxMenuItem.setText方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: reloadLang
import javax.swing.JCheckBoxMenuItem; //导入方法依赖的package包/类
private void reloadLang() {
lang = JLang.getLangProp();
console.setTitle(lang.getProperty("console", "Console"));
console.button.setText(lang.getProperty("enter", "Enter"));
console.M1.setText(lang.getProperty("file", "File"));
console.M2.setText(lang.getProperty("options", "Options"));
console.M1I1.setText(lang.getProperty("exit", "Exit"));
console.M1I2.setText(lang.getProperty("restart", "Restart"));
console.M1I3.setText(lang.getProperty("reload", "Reload"));
console.M1I4.setText(lang.getProperty("save_as", "Save As"));
console.M2C1.setText(lang.getProperty("print_timestamp", "Show Timestamp"));
console.M2C2.setText(lang.getProperty("print_extrainformation", "Show Appearance"));
console.M2C3.setText(lang.getProperty("print_level", "Show Level"));
console.M2C4.setText(lang.getProperty("debug_mode", "Enable Debug Mode"));
console.M2C5.setText(lang.getProperty("show_normal", "Show Normal"));
console.M2C6.setText(lang.getProperty("show_error", "Show Error"));
console.M2C7.setText(lang.getProperty("show_input", "Show Input"));
console.M2C8.setText(lang.getProperty("show_command", "Show Command"));
console.M2C9.setText(lang.getProperty("show_low", "Show Low"));
wizardsaveas.setTitle(lang.getProperty("save_as", "Save As"));
wizardsaveas.button_bottom_back.setText(lang.getProperty("back_a", "< Back"));
wizardsaveas.button_bottom_next.setText(lang.getProperty("next_a", "Next >"));
wizardsaveas.button_bottom_cancel.setText(lang.getProperty("cancel", "Cancel"));
wizardsaveas.button_bottom_finish.setText(lang.getProperty("finish", "Finish"));
wizardsaveas.button_center_path.setText(lang.getProperty("search_computer", "Search Computer"));
wizardsaveas.label_center_path.setText(lang.getProperty("file", "File"));
wizardsaveas.label_save_infos.setText(lang.getProperty("save_infos", "Save Infos"));
wizardsaveas.label_save_level.setText(lang.getProperty("save_levels", "Save Level"));
wizardsaveas.checkbox_save_infos_appearance.setText(lang.getProperty("appearance", "Appearance"));
wizardsaveas.checkbox_save_infos_level.setText(lang.getProperty("level", "Level"));
wizardsaveas.checkbox_save_infos_timestamp.setText(lang.getProperty("timestamp", "Timestamp"));
wizardsaveas.checkbox_save_level_command.setText(lang.getProperty("command", "Command"));
wizardsaveas.checkbox_save_level_error.setText(lang.getProperty("error", "Error"));
wizardsaveas.checkbox_save_level_input.setText(lang.getProperty("input", "Input"));
wizardsaveas.checkbox_save_level_low.setText(lang.getProperty("low", "Low"));
wizardsaveas.checkbox_save_level_normal.setText(lang.getProperty("normal", "Normal"));
wizardsaveas.jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), lang.getProperty("settings", "Settings")));
if(START != null) {
START.setLogEntry(lang.getProperty("program_started", "Program started"));
}
for(JMenuItem mi : menuitems) {
mi.setText(lang.getProperty("show_console", "Show Console"));
}
for(JCheckBoxMenuItem cbmi : menucheckboxitems) {
cbmi.setText(lang.getProperty("show_console", "Show Console"));
}
reloadConsole(false);
}