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

    r12657 r18370  
    5050    {
    5151    super(Gatherer.g_man, true);
     52        this.setComponentOrientation(Dictionary.getOrientation());
    5253    setTitle(Dictionary.get("RenamePrompt.Title"));
    5354    name = collection_tree_node.getFile().getName();
     
    8788    setSize(SIZE);
    8889    JPanel content_pane = (JPanel) getContentPane();
    89 
     90        content_pane.setComponentOrientation(Dictionary.getOrientation());
     91       
    9092    JPanel info_pane = new JPanel();
    91 
     93        info_pane.setComponentOrientation(Dictionary.getOrientation());
     94       
    9295    JLabel name_label = new JLabel(Dictionary.get("RenamePrompt.Name"));
     96        name_label.setComponentOrientation(Dictionary.getOrientation());
    9397    name_textfield = new JTextField(name);
     98        name_textfield.setComponentOrientation(Dictionary.getOrientation());
    9499
    95100    JPanel button_pane = new JPanel();
     101        button_pane.setComponentOrientation(Dictionary.getOrientation());
    96102    ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip"));
    97103    cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip"));
     
    105111    // Layout
    106112    info_pane.setLayout(new BorderLayout(5,0));
    107     info_pane.add(name_label, BorderLayout.WEST);
     113    info_pane.add(name_label, BorderLayout.LINE_START);
    108114    info_pane.add(name_textfield, BorderLayout.CENTER);
    109115
Note: See TracChangeset for help on using the changeset viewer.