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/gems/OpenMetadataSetPrompt.java

    r12680 r18412  
    7373    public OpenMetadataSetPrompt(Frame parent,MetadataSetManager msm) {
    7474    super(parent, true);
    75 
     75       
    7676        self = this;
    7777    meta_manager = msm;
     
    8282    JPanel content_pane = (JPanel) getContentPane();
    8383        content_pane.setOpaque(true);
    84    
     84    content_pane.setComponentOrientation(Dictionary.getOrientation());
     85       
    8586    JLabel  available_metadata_sets_label = new JLabel(Dictionary.get("GEMS.OpenMetadataSetPrompt.Available_Sets"));
    8687    available_metadata_sets_label.setOpaque(true);
    87 
     88        available_metadata_sets_label.setComponentOrientation(Dictionary.getOrientation());
     89       
    8890        available_set_list = new JList();
    8991    available_set_list.setCellRenderer(new MetadatSetListCellRenderer());
     
    9193        available_set_list.setFixedCellHeight(20);
    9294    available_set_list.addListSelectionListener(new MetadataSetListSelectionListener());
    93 
     95        available_set_list.setComponentOrientation(Dictionary.getOrientation());
     96       
    9497        JPanel set_pane = new JPanel();
     98        set_pane.setComponentOrientation(Dictionary.getOrientation());
    9599        set_pane.setLayout(new BorderLayout());
    96100        set_pane.add(available_metadata_sets_label,BorderLayout.NORTH);
    97101    set_pane.add(new JScrollPane(available_set_list),BorderLayout.CENTER);
    98102       
    99 
    100103    JLabel  metadata_set_des_label = new JLabel(Dictionary.get("GEMS.Set_Description"));
    101104    metadata_set_des_label.setOpaque(true);
    102 
     105        metadata_set_des_label.setComponentOrientation(Dictionary.getOrientation());
     106       
    103107    description_textarea = new  JTextArea();
    104108        description_textarea.setOpaque(true);
     
    106110        description_textarea.setLineWrap(true);
    107111        description_textarea.setWrapStyleWord(true);
    108 
     112        description_textarea.setComponentOrientation(Dictionary.getOrientation());
     113       
    109114    JPanel des_pane = new JPanel();
    110115        des_pane.setLayout(new BorderLayout());
    111116        des_pane.add(metadata_set_des_label,BorderLayout.NORTH);
    112117    des_pane.add(new JScrollPane(description_textarea),BorderLayout.CENTER);
    113 
     118        des_pane.setComponentOrientation(Dictionary.getOrientation());
     119       
    114120    JPanel button_pane = new JPanel();
     121        button_pane.setComponentOrientation(Dictionary.getOrientation());
     122       
    115123    open_button = new GLIButton(Dictionary.get("GEMS.OpenMetadataSetPrompt.Open"), Dictionary.get("GEMS.OpenMetadataSetPrompt.Open_Tooltip"));
    116     open_button.setEnabled(true);
    117    
     124    open_button.setEnabled(true);   
     125       
    118126    browse_button = new GLIButton(Dictionary.get("General.Browse"));
    119127        browse_button.setEnabled(true);
Note: See TracChangeset for help on using the changeset viewer.