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

    r12805 r18370  
    7575    DebugStream.println("BaseConfigPane: Main GUI components created.");
    7676    // Creation
     77        this.setComponentOrientation(Dictionary.getOrientation());
    7778    tree_pane = new JPanel();
    78 
     79        tree_pane.setComponentOrientation(Dictionary.getOrientation());
     80       
    7981    tree = new DesignTree();
    80    
     82    tree.setComponentOrientation(Dictionary.getOrientation());
    8183    // Connect
    8284    tree.addTreeSelectionListener(new TreeListener());
     
    8587    tree_pane.setLayout(new BorderLayout());
    8688    tree_pane.setPreferredSize(TREE_SIZE);
    87     tree_pane.add(new JScrollPane(tree), BorderLayout.CENTER);
     89        JScrollPane scrol_tmp;
     90        scrol_tmp = new JScrollPane(tree);
     91        scrol_tmp.setComponentOrientation(Dictionary.getOrientation());
     92    tree_pane.add(scrol_tmp, BorderLayout.CENTER);
    8893    setLayout(new BorderLayout());
    8994    setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    9095   
    91     add(tree_pane, BorderLayout.WEST);
     96    add(tree_pane, BorderLayout.LINE_START);
    9297
    9398
Note: See TracChangeset for help on using the changeset viewer.