You can use FocusListener to check if the length of the text entered was
satisfactory when the user is leaving the text field (when it loses focus).

-----Original Message-----
From: Amit Rana [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 5:05 AM
To: Reinstein, Lenny; 'Dave Wathen'; 'baski'; Norell Peter;
[EMAIL PROTECTED]
Subject: RE: Editing a JTable cell on double-click.
Importance: High


On the same lines,
is it a good idea to set minimum length for a text field in the document?

if yes how to do that?

i was trying the same by putting the check in remove() method or
PlainDocument but for the case where user selects the complete text and then
types, it fails.

opinion?

TIA,
amit.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Reinstein, Lenny
Sent: Thursday, March 28, 2002 2:29 AM
To: 'Dave Wathen'; 'baski'; Norell Peter; [EMAIL PROTECTED]
Subject: RE: Editing a JTable cell on double-click.


You are absolutely right.
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to