Ignore:
Timestamp:
2009-01-22T11:04:31+13:00 (15 years ago)
Author:
kjdon
Message:

more modifications for RTL GLI, thanks to Amin Hedjazi

File:
1 edited

Legend:

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

    r18370 r18412  
    9090    JPanel content_pane = (JPanel) getContentPane();
    9191    content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    92 
     92        content_pane.setComponentOrientation(Dictionary.getOrientation());
     93       
    9394    JTextArea instructions_area = new JTextArea(Dictionary.get("FileAssociationDialog.Instructions"));
    9495    instructions_area.setEditable(false);
     
    9697    instructions_area.setRows(5);
    9798    instructions_area.setWrapStyleWord(true);
    98    
     99    instructions_area.setComponentOrientation(Dictionary.getOrientation());
     100       
    99101    JPanel control_pane = new JPanel();
     102        control_pane.setComponentOrientation(Dictionary.getOrientation());
     103       
    100104    existing_associations_table = new JTable(file_association_manager);
    101     existing_associations_table.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN);
     105    existing_associations_table.setComponentOrientation(Dictionary.getOrientation());
     106        existing_associations_table.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN);
    102107    existing_associations_table.setColumnSelectionAllowed(false);
    103108    existing_associations_table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    104109    JPanel lower_pane = new JPanel();
     110        lower_pane.setComponentOrientation(Dictionary.getOrientation());
    105111    JPanel details_pane = new JPanel();
     112        details_pane.setComponentOrientation(Dictionary.getOrientation());
    106113
    107114    JPanel extension_pane = new JPanel();
     115        extension_pane.setComponentOrientation(Dictionary.getOrientation());
    108116    JLabel extension_label = new JLabel(Dictionary.get("FileAssociationDialog.Extension"));
     117        extension_label.setComponentOrientation(Dictionary.getOrientation());
    109118    extension_field = new NonWhitespaceField();
    110119    extension_field.setToolTipText(Dictionary.get("FileAssociationDialog.Extension_Tooltip"));
    111120               
    112121    JLabel command_label = new JLabel(Dictionary.get("FileAssociationDialog.Command"));
    113     JPanel command_pane = new JPanel();
     122        command_label.setComponentOrientation(Dictionary.getOrientation());
     123        JPanel command_pane = new JPanel();
     124        command_pane.setComponentOrientation(Dictionary.getOrientation());
    114125    command_field = new JTextField();
     126        command_field.setComponentOrientation(Dictionary.getOrientation());
    115127    command_field.setToolTipText(Dictionary.get("FileAssociationDialog.Command_Tooltip"));
    116128    browse_button = new GLIButton(Dictionary.get("FileAssociationDialog.Browse"));
     
    124136
    125137    JPanel button_pane = new JPanel();       
     138        button_pane.setComponentOrientation(Dictionary.getOrientation());
    126139       
    127140    add_button = new GLIButton(Dictionary.get("FileAssociationDialog.Add"), Dictionary.get("FileAssociationDialog.Add_Tooltip"));
     
    170183    button_pane.add(replace_button);
    171184    button_pane.add(remove_button);
    172     button_pane.add(new JPanel());
    173     button_pane.add(new JPanel());
     185        JPanel tmp ;
     186        tmp = new JPanel();
     187        tmp.setComponentOrientation(Dictionary.getOrientation());
     188    button_pane.add(tmp);
     189        tmp = new JPanel();
     190        tmp.setComponentOrientation(Dictionary.getOrientation());
     191    button_pane.add(tmp);
    174192    button_pane.add(close_button);
    175193
     
    198216    screen = null;
    199217       
    200         //RTL
    201         content_pane.setComponentOrientation(Dictionary.getOrientation());
    202         instructions_area.setComponentOrientation(Dictionary.getOrientation());
    203         control_pane.setComponentOrientation(Dictionary.getOrientation());
    204         existing_associations_table.setComponentOrientation(Dictionary.getOrientation());
    205         lower_pane.setComponentOrientation(Dictionary.getOrientation());
    206         details_pane.setComponentOrientation(Dictionary.getOrientation());
    207         extension_pane.setComponentOrientation(Dictionary.getOrientation());
    208         extension_label.setComponentOrientation(Dictionary.getOrientation());
    209         extension_field.setComponentOrientation(Dictionary.getOrientation());
    210         command_label.setComponentOrientation(Dictionary.getOrientation());
    211         command_pane.setComponentOrientation(Dictionary.getOrientation());
    212         //end
    213218    }
    214219
Note: See TracChangeset for help on using the changeset viewer.