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/MetadataSetView.java

    r12092 r12123  
    164164        // Create visual components
    165165        central_pane = new JPanel();
    166         element_label = new JLabel();
    167         //element_label.setHorizontalAlignment(JLabel.CENTER);
     166        element_label = new JLabel(Dictionary.get("CDM.MetadataSetManager.Elements"));
    168167        element_label.setOpaque(true);
    169         Dictionary.registerText(element_label, "CDM.MetadataSetManager.Elements");
     168       
    170169        element_list = new JList();
    171170        element_list_scroll_pane = new JScrollPane();
     
    177176
    178177        JPanel header_pane = new DesignPaneHeader("CDM.GUI.MetadataSets", "metadatasets");
    179         set_label = new JLabel();
    180         //set_label.setHorizontalAlignment(JLabel.CENTER);
     178        set_label = new JLabel(Dictionary.get("CDM.MetadataSetManager.Sets"));
    181179        set_label.setOpaque(true);
    182         Dictionary.registerText(set_label, "CDM.MetadataSetManager.Sets");
     180       
    183181        set_list = new JList(model);
    184182        set_list.setCellRenderer(new MetadataSetListCellRenderer());
     
    188186
    189187        JPanel button_pane = new JPanel();
    190         add_button = new GLIButton();
     188        add_button = new GLIButton(Dictionary.get("CDM.MetadataSetManager.Add"), Dictionary.get("CDM.MetadataSetManager.Add_Tooltip"));
    191189        add_button.setEnabled(true);
    192         add_button.setMnemonic(KeyEvent.VK_A);
    193         Dictionary.registerBoth(add_button, "CDM.MetadataSetManager.Add", "CDM.MetadataSetManager.Add_Tooltip");
    194         edit_button = new GLIButton();
     190       
     191        edit_button = new GLIButton(Dictionary.get("CDM.MetadataSetManager.Edit"), Dictionary.get("CDM.MetadataSetManager.Edit_Tooltip"));
    195192        edit_button.setEnabled(false);
    196         edit_button.setMnemonic(KeyEvent.VK_E);
    197         Dictionary.registerBoth(edit_button, "CDM.MetadataSetManager.Edit", "CDM.MetadataSetManager.Edit_Tooltip");
    198        
    199         remove_button = new GLIButton();
     193               
     194        remove_button = new GLIButton(Dictionary.get("CDM.MetadataSetManager.Remove"), Dictionary.get("CDM.MetadataSetManager.Remove_Tooltip"));
    200195        remove_button.setEnabled(false);
    201         remove_button.setMnemonic(KeyEvent.VK_R);
    202         Dictionary.registerBoth(remove_button, "CDM.MetadataSetManager.Remove", "CDM.MetadataSetManager.Remove_Tooltip");
     196       
    203197        list_listener = new MetadataSetListSelectionListener();
    204198
Note: See TracChangeset for help on using the changeset viewer.