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

    r9340 r18370  
    3131import javax.swing.*;
    3232import org.greenstone.gatherer.Configuration;
     33import org.greenstone.gatherer.Dictionary;
    3334import org.greenstone.gatherer.Gatherer;
    3435
     
    4748    super(Gatherer.g_man, title);
    4849    this.message = message;
     50        this.setComponentOrientation(Dictionary.getOrientation());
    4951    }
    5052
     
    6668    // Create
    6769    JProgressBar progress_bar = new JProgressBar();
     70        progress_bar.setComponentOrientation(Dictionary.getOrientation());
    6871    progress_bar.setIndeterminate(true);
    6972
    7073    // Layout
    7174    JPanel content_pane = (JPanel) getContentPane();
     75        content_pane.setComponentOrientation(Dictionary.getOrientation());
    7276    content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    7377    content_pane.setLayout(new BorderLayout());
    74     content_pane.add(new JLabel(message), BorderLayout.NORTH);
     78       
     79        JLabel tmp = new JLabel(message);
     80        tmp.setComponentOrientation(Dictionary.getOrientation());
     81   
     82        content_pane.add(tmp, BorderLayout.NORTH);
    7583    content_pane.add(progress_bar, BorderLayout.CENTER);
    7684
Note: See TracChangeset for help on using the changeset viewer.