View Single Post
  #1 (permalink)  
Old 08-06-2007, 07:48 PM
coco coco is offline
Member
 
Join Date: Jul 2007
Posts: 39
coco is on a distinguished road
Error: NumberFormatException
Hi, This is a mystery to me. I've tried simplifying my code to see where the problems arise..but I can't make it any simpler..and the NumberFormat still won't accept 0, or 0.0 as numbers.
Code:
try { Double.parseDouble(jTxtFAmount.getText()); } catch(NumberFormatException ex) { jTxtArea.append("The amount entered is illegal\n"+ex.getMessage()+"\n"); }
I'd just as well say, you can't have a zero balance, because that's what the exception keeps catching.
Thanks.
Reply With Quote
Sponsored Links