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

    r17612 r18370  
    8787    this.self = this;
    8888    this.metadata_file = source_file;
    89 
     89        this.setComponentOrientation(Dictionary.getOrientation());
    9090    // check that we actually have an explodable file
    9191    ArrayList exp_plugins = CollectionDesignManager.plugin_manager.getExploderPlugins(source_file);
     
    107107    // Creation
    108108    JPanel content_pane = (JPanel) getContentPane();
     109        content_pane.setComponentOrientation(Dictionary.getOrientation());
    109110    content_pane.setOpaque(true);
    110111   
    111112    options_pane = new JPanel();
     113        options_pane.setComponentOrientation(Dictionary.getOrientation());
    112114    addScriptOptions(options_pane);
    113115    JScrollPane middle_pane = new JScrollPane(options_pane);
    114 
     116        middle_pane.setComponentOrientation(Dictionary.getOrientation());
     117       
    115118    JTextArea instructions_area = new JTextArea(Dictionary.get("ExplodeMetadataPrompt.Instructions"));
    116     instructions_area.setEditable(false);
     119    instructions_area.setComponentOrientation(Dictionary.getOrientation());
     120        instructions_area.setEditable(false);
    117121    instructions_area.setLineWrap(true);
    118122    instructions_area.setRows(5);
     
    120124   
    121125    JPanel button_pane = new JPanel();
    122     JButton explode_button = new GLIButton(Dictionary.get("ExplodeMetadataPrompt.Explode"), Dictionary.get("ExplodeMetadataPrompt.Explode_Tooltip"));
     126    button_pane.setComponentOrientation(Dictionary.getOrientation());
     127        JButton explode_button = new GLIButton(Dictionary.get("ExplodeMetadataPrompt.Explode"), Dictionary.get("ExplodeMetadataPrompt.Explode_Tooltip"));
    123128    JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
    124129   
Note: See TracChangeset for help on using the changeset viewer.