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

    r12119 r18370  
    6767    public EditorDialog() {
    6868    super(Gatherer.g_man);
     69        this.setComponentOrientation(Dictionary.getOrientation());
    6970    }
    7071
     
    9495    // Create
    9596    text = new JTextArea(value);
     97        text.setComponentOrientation(Dictionary.getOrientation());
    9698    text.setCaretPosition(value.length());
    9799    text.setEditable(editable);
     
    115117    // Layout
    116118    JPanel button_pane = new JPanel();
     119        button_pane.setComponentOrientation(Dictionary.getOrientation());
    117120    button_pane.setLayout(new GridLayout(1,2));
    118121    if(editable) {
     
    126129         
    127130    JPanel content_pane = (JPanel) getContentPane();
     131        content_pane.setComponentOrientation(Dictionary.getOrientation());
    128132    content_pane.setLayout(new BorderLayout());
    129     content_pane.add(new JScrollPane(text), BorderLayout.CENTER);
     133        JScrollPane scrol_tmp;
     134        scrol_tmp = new JScrollPane(text);
     135        scrol_tmp.setComponentOrientation(Dictionary.getOrientation());
     136    content_pane.add(scrol_tmp, BorderLayout.CENTER);
    130137    content_pane.add(button_pane, BorderLayout.SOUTH);
    131138         
Note: See TracChangeset for help on using the changeset viewer.