Two Laptop Bag*
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 Java 8 in Action this week in the Java 8 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
Consider Paul's rocket mass heater.
subject: JOption Pane
Similar Threads
Objects and Classes
static vs non-static...confusion
Help on testprogram and subclass please
k & b , Ryan and Monica problem......
question in a beginning java problem