This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Letters only in JOptionPane? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Letters only in JOptionPane?" Watch "Letters only in JOptionPane?" New topic
Author

Letters only in JOptionPane?

joe kane
Greenhorn

Joined: Jan 26, 2004
Posts: 29
Hi,
I was wondering how do you validate a inputbox so that only letters can be entered e.g. A --> Z

I know this validates it so only number can be entered, but what for the other way around?
Thanks Joe Kane
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
joe kane
Greenhorn

Joined: Jan 26, 2004
Posts: 29
Anyone have any ideas,
Thanks in advance joe kane
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
Check out the "Pattern" class in the java documentation.


The nice thing about Standards is that there are so many to choose from!
 
wood burning stoves
 
subject: Letters only in JOptionPane?