File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
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."
I agree. Here's the link:
subject: JOption Pane
k & b , Ryan and Monica problem......
static vs non-static...confusion
question in a beginning java problem
Objects and Classes
Help on testprogram and subclass please
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015