This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JOption Pane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOption Pane" Watch "JOption Pane" New topic

JOption Pane

umut uzumcu
Ranch Hand

Joined: Jan 10, 2007
Posts: 43

here I can get the entered double withdraw amount but the problem is I dont know how can I prevent the user to enter letters or punctuations(anything else than number.)?
marc weber

Joined: Aug 31, 2004
Posts: 11343

You might consider a Formatted Text Field.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
subject: JOption Pane
jQuery in Action, 3rd edition