List of usage examples for javax.swing.text DocumentFilter subclass-usage
From source file Main.java
class DocumentSizeFilter extends DocumentFilter { int len; public DocumentSizeFilter(int max_Chars) { len = max_Chars; }
From source file MainClass.java
class IntegerRangeDocumentFilter extends DocumentFilter { int minimum, maximum; int currentValue = 0;
From source file Main.java
class UppercaseDocumentFilter extends DocumentFilter { public void insertString(DocumentFilter.FilterBypass fb, int offset, String text, AttributeSet attr) throws BadLocationException { fb.insertString(offset, text.toUpperCase(), attr); }
From source file org.kineticsystem.commons.data.view.FixedSizeFilter.java
/**
* This is a filter used to limit the maximum number of characters that can be
* inserted in a <tt>JTextFields</tt>.
* @author Giovanni Remigi
* @version $Revision: 36 $
*/
From source file components.DocumentSizeFilter.java
public class DocumentSizeFilter extends DocumentFilter { int maxCharacters; boolean DEBUG = false; public DocumentSizeFilter(int maxChars) { maxCharacters = maxChars;
From source file Main.java
class MyDocumentFilter extends DocumentFilter { @Override public void insertString(FilterBypass fb, int offset, String text, AttributeSet aset) { try { super.insertString(fb, offset, text.replaceAll("\\D++", ""), aset); } catch (BadLocationException ble) {
From source file FormatTest.java
/** * A filter that restricts input to digits and a '-' sign. */ class IntFilter extends DocumentFilter { public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr) throws BadLocationException {
From source file TextComponentDemo.java
class DocumentSizeFilter extends DocumentFilter { int maxCharacters; boolean DEBUG = false; public DocumentSizeFilter(int maxChars) {
From source file TextComponentDemo.java
class DocumentSizeFilter extends DocumentFilter { int maxCharacters; boolean DEBUG = false; public DocumentSizeFilter(int maxChars) { maxCharacters = maxChars;