摘要: import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.PlainDocument;
public class LimitedDocument extends PlainDocument {
private int maxLength = -1;
private String allowCharAsString = null;
public LimitedDocument() {
super();
}
阅读全文