Sunday, May 9, 2004 05:57 PM
1. Create a document that extends javax.swing.text.PlainDocument and over ride the insertString() method to only allow characters to be inserted up to a specified length.
2. You need to add a Focus Listener to you text field and then handle setting the variable in the focusLost() method.