List of usage examples for javax.swing.text PlainDocument subclass-usage
From source file JTextFieldLimit.java
class JTextFieldLimit extends PlainDocument { private int limit; JTextFieldLimit(int limit) { super(); this.limit = limit;
From source file NonNumericDocument.java
class NonNumericDocument extends PlainDocument { @Override public void insertString(int offs, String str, AttributeSet a) throws BadLocationException { if (str == null) { return; }
From source file MaxLengthDocument.java
public class MaxLengthDocument extends PlainDocument { private int max; public MaxLengthDocument(int maxLength) { max = maxLength;
From source file MaxLengthDocument.java
public class MaxLengthDocument extends PlainDocument { private int max; public MaxLengthDocument(int maxLength) { max = maxLength; }
From source file JTextFieldFilter.java
class JTextFieldFilter extends PlainDocument { public static final String NUMERIC = "0123456789"; protected String acceptedChars = null; protected boolean negativeAccepted = false;
From source file JTextFieldLimit.java
class JTextFieldLimit extends PlainDocument { private int limit; JTextFieldLimit(int limit) { super(); this.limit = limit;
From source file JTextFieldFilter.java
class JTextFieldFilter extends PlainDocument { public static final String FLOAT = "0123456789."; protected String acceptedChars = null; protected boolean negativeAccepted = false;
From source file JTextFieldFilter.java
class JTextFieldFilter extends PlainDocument { public static final String ALPHA = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; public static final String NUMERIC = "0123456789"; public static final String ALPHA_NUMERIC = ALPHA + NUMERIC; protected String acceptedChars = null;
From source file Main.java
class FixedSizePlainDocument extends PlainDocument { int maxSize; public FixedSizePlainDocument(int limit) { maxSize = limit; }
From source file JTextFieldMaxLength.java
class PlainDocumentMaxLength extends PlainDocument { private int maxLength; public PlainDocumentMaxLength(int maxLength) { this.maxLength = maxLength; }