A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Swing / AWT / SWT
Joined: Jul 20, 2001
Oct 22, 2001 00:47:00
I would like to restrict the user to enter a minimum of 3 characters and a maximum of 8 characters in the 'UserID' text field (
), is there any API for this in
. Can you suggest any solution ?
Thanks in advance.
Kindly reply back.
Joined: May 17, 2001
Oct 22, 2001 06:23:00
Here is a link to the
Go to the creating validated textfields section. In the example check out the insertString method. You will need to modify that to limit the entry.
It is sorta covered in the
JavaRanch Style Guide
Limit JTextField number of characters
HQL + LIKE + _
How to Create a Unique 16 Character String
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014