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

    r17131 r18370  
    5656    super(Gatherer.g_man, title, true);
    5757    this.self = this;
    58    
     58    this.setComponentOrientation(Dictionary.getOrientation());
     59       
    5960    setUpGUI(label, results);
    6061  }
     
    7475   
    7576    JPanel content_pane = (JPanel) getContentPane();
     77    content_pane.setComponentOrientation(Dictionary.getOrientation());
    7678    JLabel result_label = new JLabel(label);
     79    result_label.setComponentOrientation(Dictionary.getOrientation());
    7780   
    7881    JPanel button_pane = new JPanel();
     82    button_pane.setComponentOrientation(Dictionary.getOrientation());
    7983    JButton close_button = new GLIButton(Dictionary.get("General.Close"));
    8084    close_button.addActionListener(new CloseButtonListener());
    8185   
    8286    JPanel output_pane = new JPanel();
     87    output_pane.setComponentOrientation(Dictionary.getOrientation());
    8388    JLabel output_label = new JLabel(Dictionary.get("General.Review_Output"));
    84        
     89    output_label.setComponentOrientation(Dictionary.getOrientation());
     90
    8591    JTextArea output_textarea = new JTextArea(results);
     92    output_textarea.setComponentOrientation(Dictionary.getOrientation());
    8693    output_textarea.setCaretPosition(0);
    8794    output_textarea.setEditable(false);
     
    9097   
    9198    button_pane.setLayout(new BorderLayout());
    92     button_pane.add(close_button, BorderLayout.EAST);
     99    button_pane.add(close_button, BorderLayout.LINE_END);
    93100   
    94101    output_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0));
Note: See TracChangeset for help on using the changeset viewer.