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

    r12119 r18370  
    6262    public NewFolderOrFilePrompt(CollectionTreeNode node, int type, String extension) {
    6363    super(Gatherer.g_man, true);
     64        this.setComponentOrientation(Dictionary.getOrientation());
    6465    if (type == FileManager.FILE_TYPE) {
    6566        setTitle(Dictionary.get("NewFolderOrFilePrompt.Title_File"));
     
    8788    setSize(SIZE);
    8889    JPanel content_pane = (JPanel) getContentPane();
    89 
     90        content_pane.setComponentOrientation(Dictionary.getOrientation());
     91       
    9092    JPanel labels_pane = new JPanel();
     93        labels_pane.setComponentOrientation(Dictionary.getOrientation());
    9194    JPanel fields_pane = new JPanel();
     95        fields_pane.setComponentOrientation(Dictionary.getOrientation());
    9296    JPanel info_pane = new JPanel();
     97        info_pane.setComponentOrientation(Dictionary.getOrientation());
    9398
    9499    JLabel destination_label = new JLabel(Dictionary.get("NewFolderOrFilePrompt.Destination_Name"));
    95 
     100        destination_label.setComponentOrientation(Dictionary.getOrientation());
     101       
    96102    JTextField destination_textfield = new JTextField(node.getFile().getName());
     103        destination_textfield.setComponentOrientation(Dictionary.getOrientation());
    97104    destination_textfield.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    98105    destination_textfield.setEditable(false);
    99106   
    100107    JLabel name_label = new JLabel();
     108        name_label.setComponentOrientation(Dictionary.getOrientation());;
    101109    name_field = new JTextField(getAutomaticName());
     110        name_field.setComponentOrientation(Dictionary.getOrientation());
    102111    if (type == FileManager.FILE_TYPE) {
    103112        name_label.setText(Dictionary.get("NewFolderOrFilePrompt.File_Name"));
     
    108117    }
    109118    JPanel button_pane = new JPanel();
     119        button_pane.setComponentOrientation(Dictionary.getOrientation());
    110120    ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip"));
    111121   
     
    126136   
    127137    info_pane.setLayout(new BorderLayout(5,0));
    128     info_pane.add(labels_pane, BorderLayout.WEST);
     138    info_pane.add(labels_pane, BorderLayout.LINE_START);
    129139    info_pane.add(fields_pane, BorderLayout.CENTER);
    130140
Note: See TracChangeset for help on using the changeset viewer.