Ignore:
Timestamp:
2006-07-10T14:42:54+12:00 (18 years ago)
Author:
kjdon
Message:

Changed text handling to use Dictionary.get rather than Dictionary.setText or Dictionary.registerBoth etc

File:
1 edited

Legend:

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

    r10581 r12115  
    8383    JLabel title_label = new JLabel(getMessageString());
    8484    JPanel user_panel = new JPanel();
    85     JLabel username_label = new JLabel();
    86     Dictionary.setText(username_label, "GAuthenticator.Username");
     85    JLabel username_label = new JLabel(Dictionary.get("GAuthenticator.Username"));
    8786    JTextField username = new JTextField();
    88     Dictionary.setTooltip(username, "GAuthenticator.Username_Tooltip");
     87    username.setToolTipText(Dictionary.get("GAuthenticator.Username_Tooltip"));
    8988    JPanel password_panel = new JPanel();
    90     JLabel password_label = new JLabel();
    91     Dictionary.setText(password_label, "GAuthenticator.Password");
     89    JLabel password_label = new JLabel(Dictionary.get("GAuthenticator.Password"));
    9290    password = new JPasswordField();
    9391    password.setEchoChar('*');
    94     Dictionary.setTooltip(password, "GAuthenticator.Password_Tooltip");
     92    password.setToolTipText(Dictionary.get("GAuthenticator.Password_Tooltip"));
    9593    JPanel button_panel = new JPanel();
    96     ok_button = new GLIButton();
    97     ok_button.setMnemonic(KeyEvent.VK_O);
    98     Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip");
    99     cancel_button = new GLIButton();
    100     cancel_button.setMnemonic(KeyEvent.VK_C);
    101     Dictionary.setBoth(cancel_button, "General.Cancel", "General.Cancel_Tooltip");
    102 
     94    ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip"));
     95    cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
     96   
    10397    // Connection
    10498    cancel_button.addActionListener(new AuthenticationActionListener(true));
Note: See TracChangeset for help on using the changeset viewer.