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

    r12119 r18370  
    3939    // Construction and configuration
    4040    JDialog dialog = new ModalDialog(Gatherer.g_man);
     41        dialog.setComponentOrientation(Dictionary.getOrientation());
    4142    dialog.setModal(true);
    4243    dialog.setSize(DIALOG_SIZE);
     
    7273    // Layout
    7374    JPanel left_pane = new JPanel();
     75        left_pane.setComponentOrientation(Dictionary.getOrientation());
    7476    left_pane.setLayout(new GridLayout(3,1));
    75     left_pane.add(new JLabel(Dictionary.get("MIMP.Source_Element")));
    76     left_pane.add(new JLabel(Dictionary.get("MIMP.Target_Set")));
    77     left_pane.add(new JLabel(Dictionary.get("MIMP.Target_Element")));
     77       
     78        JLabel tmp_lable;
     79       
     80        tmp_lable = new JLabel(Dictionary.get("MIMP.Source_Element"));
     81        tmp_lable.setComponentOrientation(Dictionary.getOrientation());
     82    left_pane.add(tmp_lable);
     83       
     84        tmp_lable = new JLabel(Dictionary.get("MIMP.Target_Set"));
     85        tmp_lable.setComponentOrientation(Dictionary.getOrientation());
     86    left_pane.add(tmp_lable);
     87       
     88        tmp_lable = new JLabel(Dictionary.get("MIMP.Target_Element"));
     89        tmp_lable.setComponentOrientation(Dictionary.getOrientation());
     90    left_pane.add(tmp_lable);
    7891
    7992    JPanel right_pane = new JPanel();
     93        right_pane.setComponentOrientation(Dictionary.getOrientation());
     94       
    8095    right_pane.setLayout(new GridLayout(3,1));
    81     right_pane.add(new JLabel(metadata_element_name_full));
     96    tmp_lable = new JLabel(metadata_element_name_full);
     97        tmp_lable.setComponentOrientation(Dictionary.getOrientation());
     98        right_pane.add(tmp_lable);
    8299    right_pane.add(metadata_sets_combobox);
    83100    right_pane.add(metadata_elements_combobox);
    84101
    85102    JPanel button_pane = new JPanel();
     103        button_pane.setComponentOrientation(Dictionary.getOrientation());
    86104    button_pane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5));
    87105    button_pane.setLayout(new GridLayout(1,3));
     
    91109
    92110    JPanel content_pane = (JPanel) dialog.getContentPane();
     111        content_pane.setComponentOrientation(Dictionary.getOrientation());
    93112    content_pane.setLayout(new BorderLayout());
    94113    content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    95     content_pane.add(left_pane, BorderLayout.WEST);
     114    content_pane.add(left_pane, BorderLayout.LINE_START);
    96115    content_pane.add(right_pane, BorderLayout.CENTER);
    97116    content_pane.add(button_pane, BorderLayout.SOUTH);
Note: See TracChangeset for help on using the changeset viewer.