Ignore:
Timestamp:
2009-01-22T11:04:31+13:00 (15 years ago)
Author:
kjdon
Message:

more modifications for RTL GLI, thanks to Amin Hedjazi

File:
1 edited

Legend:

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

    r16369 r18412  
    6262import java.awt.Rectangle;
    6363import java.awt.Toolkit;
     64import org.greenstone.gatherer.Dictionary;
    6465
    6566
     
    9192    {
    9293    super(Gatherer.g_man, "Login", true);
     94        this.setComponentOrientation(Dictionary.getOrientation());
    9395    this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    9496       
    95     JLabel serverLabel=new JLabel("Fedora Server");
     97    JLabel serverLabel=new JLabel("Fedora Server");       
    9698    JLabel protocolLabel=new JLabel("Protocol");
    9799        JLabel usernameLabel=new JLabel("Username");
    98100        JLabel passwordLabel=new JLabel("Password");
    99101
     102        serverLabel.setComponentOrientation(Dictionary.getOrientation());
     103        protocolLabel.setComponentOrientation(Dictionary.getOrientation());
     104        usernameLabel.setComponentOrientation(Dictionary.getOrientation());
     105        passwordLabel.setComponentOrientation(Dictionary.getOrientation());
     106       
    100107        m_serverComboBox=new JComboBox(new String[]{m_lastServer});
     108        m_serverComboBox.setComponentOrientation(Dictionary.getOrientation());
    101109        m_serverComboBox.setEditable(true);
    102110    m_protocolComboBox=new JComboBox(new String[]{m_lastProtocol, "https"}); // http and https
     111        m_protocolComboBox.setComponentOrientation(Dictionary.getOrientation());       
    103112    m_protocolComboBox.setEditable(true);
    104113        m_usernameComboBox=new JComboBox(new String[]{m_lastUsername});
     114        m_usernameComboBox.setComponentOrientation(Dictionary.getOrientation());
    105115        m_usernameComboBox.setEditable(true);
    106116        m_passwordField=new JPasswordField();
     
    121131
    122132        JPanel inputPane=new JPanel();
     133        inputPane.setComponentOrientation(Dictionary.getOrientation());
    123134        inputPane.setBorder(BorderFactory.createCompoundBorder(
    124135                BorderFactory.createCompoundBorder(
     
    155166
    156167        JPanel buttonPane=new JPanel();
     168        buttonPane.setComponentOrientation(Dictionary.getOrientation());
    157169        buttonPane.add(loginButton);
    158170        buttonPane.add(cancelButton);
    159171        Container contentPane=getContentPane();
     172        contentPane.setComponentOrientation(Dictionary.getOrientation());
    160173
    161174        contentPane.setLayout(new BorderLayout());
    162175    m_infoPane = new JPanel();
     176        m_infoPane.setComponentOrientation(Dictionary.getOrientation());
    163177    m_infoPane.setBackground(TRANSPARENT);
    164178    contentPane.add(m_infoPane, BorderLayout.NORTH);
Note: See TracChangeset for help on using the changeset viewer.