This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Letters only in JOptionPane?
 
Similar Threads
RegExp Help Needed!
JOption Pane
Validating input BOX Help!!!!!
generating a Product Activation Code
TTEXTFIELD in java