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

    r5589 r18297  
    3333import javax.swing.*;
    3434import javax.swing.text.*;
     35import org.greenstone.gatherer.Dictionary;
     36
    3537/** A JTextField that doesn't allow whitespace characters.
    3638 * @author John Thompson, Greenstone Digital Library, University of Waikato
     
    4244    public NonWhitespaceField() {
    4345    super();
     46        this.setComponentOrientation(Dictionary.getOrientation());
    4447    }
    4548
    4649    public NonWhitespaceField(String text) {
    4750    super(text);
     51        this.setComponentOrientation(Dictionary.getOrientation());
    4852    }
    4953 
    5054    protected Document createDefaultModel() {
    51     return new NonWhitespaceDocument();
     55    return new NonWhitespaceDocument();       
    5256    }
    5357 
Note: See TracChangeset for help on using the changeset viewer.