Ignore:
Timestamp:
2006-07-10T15:02:33+12:00 (18 years ago)
Author:
kjdon
Message:

Changed text handling to use Dictionary.get rather than Dictionary.setText or Dictionary.registerBoth etc. also removed mnemonics cos they suck for other languages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/MacrosManager.java

    r12110 r12123  
    109109        macros_textarea.setLineWrap(false);
    110110        macros_textarea.setWrapStyleWord(false);
    111         Dictionary.registerTooltip(macros_textarea, "CDM.MacrosManager.Editor_Tooltip");
     111        macros_textarea.setToolTipText(Dictionary.get("CDM.MacrosManager.Editor_Tooltip"));
    112112
    113113        JPanel macros_pane = new JPanel();
     
    115115        macros_pane.setLayout(new BorderLayout());
    116116        macros_pane.add(new JScrollPane(macros_textarea), BorderLayout.CENTER);
    117 
    118         save_button = new GLIButton();
    119         Dictionary.registerBoth(save_button, "CDM.MacrosManager.Save", "CDM.MacrosManager.Save_Tooltip");
    120         revert_button = new GLIButton();
    121         Dictionary.registerBoth(revert_button, "CDM.MacrosManager.Revert", "CDM.MacrosManager.Revert_Tooltip");
    122117       
     118        save_button = new GLIButton(Dictionary.get("CDM.MacrosManager.Save"), Dictionary.get("CDM.MacrosManager.Save_Tooltip"));
     119        revert_button = new GLIButton(Dictionary.get("CDM.MacrosManager.Revert"), Dictionary.get("CDM.MacrosManager.Revert_Tooltip"));
     120
    123121        save_button.addActionListener(new SaveListener());
    124122        revert_button.addActionListener(new RevertListener());
Note: See TracChangeset for help on using the changeset viewer.