Ignore:
Timestamp:
2008-12-26T14:35:15+13:00 (15 years ago)
Author:
kjdon
Message:

interface updated to display right to left for rtl languages. This code is thanks to Amin Hejazi. It seems to be only partially complete. Amin was working with Greenstone 3 so might have missed some panels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/branches/rtl-gli/src/org/greenstone/gatherer/gui/DesignPaneHeader.java

    r12119 r18297  
    5555    public DesignPaneHeader(String label_key, String help_key)
    5656    {
     57        this.setComponentOrientation(Dictionary.getOrientation());
    5758    JLabel title_label = new JLabel("<HTML><STRONG><FONT FACE={FONT} COLOR=Black SIZE=5>" + Dictionary.get(label_key) + "</FONT></STRONG></HTML>");
    58 
     59        title_label.setComponentOrientation(Dictionary.getOrientation());
     60       
    5961    JPanel title_pane = new JPanel();
    6062    title_pane.setBorder(BorderFactory.createEmptyBorder(0,0,0,5));
     
    6264    title_pane.add(title_label, BorderLayout.CENTER);
    6365    title_pane.add(new JSeparator(), BorderLayout.SOUTH);
    64 
     66        title_pane.setComponentOrientation(Dictionary.getOrientation());
     67       
    6568    GLIButton help_button = new GLIButton(Dictionary.get("CDM.HelpButton"), Dictionary.get("CDM.HelpButton_Tooltip"));
    6669    this.help_key_name = help_key;
     
    7578    setLayout(new BorderLayout());
    7679    add(title_pane, BorderLayout.CENTER);
    77     add(help_button, BorderLayout.EAST);
     80    add(help_button, BorderLayout.LINE_END);
    7881    }
    7982}
Note: See TracChangeset for help on using the changeset viewer.