當前位置: 首頁>>代碼示例>>Java>>正文


Java JCheckBoxMenuItem.setText方法代碼示例

本文整理匯總了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);
}
 
開發者ID:Panzer1119,項目名稱:JAddOn,代碼行數:49,代碼來源:JLogger.java


注:本文中的javax.swing.JCheckBoxMenuItem.setText方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。