- Timestamp:
- 2009-01-12T13:04:29+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/NonWhitespaceField.java
r5589 r18370 33 33 import javax.swing.*; 34 34 import javax.swing.text.*; 35 import org.greenstone.gatherer.Dictionary; 36 35 37 /** A JTextField that doesn't allow whitespace characters. 36 38 * @author John Thompson, Greenstone Digital Library, University of Waikato … … 42 44 public NonWhitespaceField() { 43 45 super(); 46 this.setComponentOrientation(Dictionary.getOrientation()); 44 47 } 45 48 46 49 public NonWhitespaceField(String text) { 47 50 super(text); 51 this.setComponentOrientation(Dictionary.getOrientation()); 48 52 } 49 53 50 54 protected Document createDefaultModel() { 51 return new NonWhitespaceDocument(); 55 return new NonWhitespaceDocument(); 52 56 } 53 57
Note:
See TracChangeset
for help on using the changeset viewer.