A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
Swing / AWT / SWT
Joined: Feb 17, 2009
Feb 18, 2009 23:28:58
How to restrict Jtextfield only for text
pleases help me
Joined: Jul 26, 2007
Feb 18, 2009 23:54:38
By "only text" i presume you mean only alphabets.
Here is a link for a text field which allows only numbers. You can modify it to allow only alphabets.
..and Welcome to the Ranch
How to ask questions
Donate a pint, save a life!
Onff-turn it on!
I agree. Here's the link:
subject: text field
set the max length of a JTextField
Need to restrict ctrl+c, ctrl+v, ctrl+x
Validating Strings in JTextFields
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015