this.maxLength = maxLength;
if (getLength() + str.length() > maxLength) { Toolkit.getDefaultToolkit().beep(); } else { super.insertString(offset, str, a); }