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

    r12119 r18370  
    5353    {
    5454    super(Gatherer.g_man);
    55 
     55        this.setComponentOrientation(Dictionary.getOrientation());
    5656    setModal(true);
    5757    setSize(DIALOG_SIZE);
     
    6060    // Creation
    6161    JPanel content_pane = (JPanel) getContentPane();
     62        content_pane.setComponentOrientation(Dictionary.getOrientation());
    6263    JPanel center_pane = new JPanel();
     64        center_pane.setComponentOrientation(Dictionary.getOrientation());
    6365    JPanel labels_pane = new JPanel();
     66        labels_pane.setComponentOrientation(Dictionary.getOrientation());
    6467    JPanel fields_pane = new JPanel();
     68        fields_pane.setComponentOrientation(Dictionary.getOrientation());
    6569
    6670    JLabel file_label = new JLabel(Dictionary.get("MappingPrompt.File"));
    67     JLabel file_field = new JLabel(file.getAbsolutePath());
    68 
     71    file_label.setComponentOrientation(Dictionary.getOrientation());
     72        JLabel file_field = new JLabel(file.getAbsolutePath());
     73        file_field.setComponentOrientation(Dictionary.getOrientation());
     74       
    6975    JLabel name_label = new JLabel(Dictionary.get("MappingPrompt.Name"));
    70     name_field = new JTextField(file.getName());
    71 
     76    name_label.setComponentOrientation(Dictionary.getOrientation());               
     77        name_field = new JTextField(file.getName());
     78        name_field.setComponentOrientation(Dictionary.getOrientation());
     79       
    7280    JPanel button_pane = new JPanel();
     81        button_pane.setComponentOrientation(Dictionary.getOrientation());
    7382    ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip"));
    7483    ok_button.setEnabled(name_field.getText().length() > 0);
     
    91100    center_pane.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));
    92101    center_pane.setLayout(new BorderLayout(5,0));
    93     center_pane.add(labels_pane, BorderLayout.WEST);
     102    center_pane.add(labels_pane, BorderLayout.LINE_START);
    94103    center_pane.add(fields_pane, BorderLayout.CENTER);
    95104
Note: See TracChangeset for help on using the changeset viewer.