permaculture playing cards*
The moose likes Swing / AWT / SWT and the fly likes text field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "text field" Watch "text field" New topic

text field

Lavanya Balaraman

Joined: Feb 17, 2009
Posts: 10
How to restrict Jtextfield only for text
pleases help me
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

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!]
Don't get me started about those stupid light bulbs.
subject: text field
Similar Threads
Byte order and file transference.
WA #1.....word association
exporting to CSV
Default Body Content
list box