Ignore:
Timestamp:
2009-01-12T13:04:29+13:00 (15 years ago)
Author:
kjdon
Message:

committed code submitted by Amin Hedjazi for making the GLI right to left. I worked on this code on the rtl-gli branch, then merged the branch back to the trunk at revision 18368. The branch code was slightly different in a couple of places where it shouldn't have been. So don't use the branch code next time. Start a new branch.

File:
1 edited

Legend:

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

    r16133 r18370  
    102102    this.current_controls = new ArrayList();
    103103    this.writing_documents = new Vector();
    104 
     104        this.setComponentOrientation(Dictionary.getOrientation());
     105       
    105106    // Have to do this here, not in display, as the message log view may not have been displayed yet.
    106107    log_textarea = new JTextArea();
     108        log_textarea.setComponentOrientation(Dictionary.getOrientation());
    107109    log_textarea.setEditable(false);
    108110    }
     
    152154      if(pane == null || current_mode >= Configuration.EXPERT_MODE) {
    153155        pane = new JPanel();
     156        pane.setComponentOrientation(Dictionary.getOrientation());
    154157        pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    155158        pane.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     
    275278    if(pane == null || current_mode >= Configuration.EXPERT_MODE) {
    276279        pane = new JPanel();
     280            pane.setComponentOrientation(Dictionary.getOrientation());
    277281        pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    278282        pane.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     
    308312    if (log_pane == null) {
    309313        log_pane = new JPanel(new BorderLayout());
    310 
     314            log_pane.setComponentOrientation(Dictionary.getOrientation());
    311315        // Build a list of the log files available, ordering by last modified. Log files are like build_log.date.txt
    312316        DefaultListModel contents = new DefaultListModel();
     
    337341
    338342        log_list = new JList(contents);
     343            log_list.setComponentOrientation(Dictionary.getOrientation());
    339344        log_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    340345        log_list.setLayoutOrientation(JList.VERTICAL);
     
    344349
    345350        JLabel log_history_label = new JLabel(Dictionary.get("OptionsPane.LogHistory"));
    346         JPanel log_history_pane = new JPanel();
     351        log_history_label.setComponentOrientation(Dictionary.getOrientation());
     352            JPanel log_history_pane = new JPanel();
     353            log_history_pane.setComponentOrientation(Dictionary.getOrientation());
    347354        log_history_pane.setPreferredSize(new Dimension(600, 100));
    348355        log_history_pane.setLayout(new BorderLayout());
    349356        log_history_pane.add(log_history_label, BorderLayout.NORTH);
    350         log_history_pane.add(new JScrollPane(log_list), BorderLayout.CENTER);
     357            JScrollPane scrol_tmp=new JScrollPane(log_list);
     358            scrol_tmp.setComponentOrientation(Dictionary.getOrientation());
     359        log_history_pane.add(scrol_tmp, BorderLayout.CENTER);
    351360       
    352         log_pane.add(new JScrollPane(log_textarea), BorderLayout.CENTER);
     361            scrol_tmp=new JScrollPane(log_textarea);
     362            scrol_tmp.setComponentOrientation(Dictionary.getOrientation());
     363        log_pane.add(scrol_tmp, BorderLayout.CENTER);
    353364        log_pane.add(log_history_pane, BorderLayout.SOUTH);
    354365    }
Note: See TracChangeset for help on using the changeset viewer.