Hi,
You are going to have to use this
public JPasswordField(Document doc,
String txt,
int columns)
Constructor.
The
Document that you pass in will have to be a sub-class that overrides
insertString(int offset, String str, AttributeSet a). In the
insertString method check to see if the length is 8 or more, if it is then don't do anything.
[ July 23, 2002: Message edited by: Ibrahim Hashimi ]