File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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 (JTextField), 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.
I agree. Here's the link:
Limit JTextField number of characters
How to Create a Unique 16 Character String
HQL + LIKE + _
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014