A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
Limiting text in a JTextField
Barry Brashear
Ranch Hand
Joined: Jun 05, 2001
Posts: 303
posted
Nov 12, 2004 10:47:00
0
Is there a way to limit the amount of text that can be typed
into a
JTextField
?
Thanks.
Hari priya
Ranch Hand
Joined: Mar 11, 2004
Posts: 134
posted
Nov 12, 2004 11:11:00
0
Hi barry -
Here is a link to the code which shows how to limit input. Hope this helps!
http://www.rgagnon.com/javadetails/java-0198.html
I agree. Here's the link:
http://zeroturnaround.com/jrebel/download
subject: Limiting text in a JTextField
Similar Threads
JTextField Word Wrap??
I would like save the user inputs form JTextField ab,l m,n,o etc. how can I do this please help
how to increase the size of the text field and change its position ?
Jtext problem very urgent
automatic scrolling of JTextField
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter