A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Swing / AWT / SWT
Joined: Jan 10, 2007
Jan 20, 2007 05:21:00
withdraw=Double.parseDouble(JOptionPane.showInputDialog("Please enter the amount you want to withdraw )"));
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.)?
Joined: Aug 31, 2004
Jan 20, 2007 11:04:00
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."
rocket mass heater
subject: JOption Pane
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014