View Single Post
  #3 (permalink)  
Old 07-30-2007, 05:12 AM
rhivka rhivka is offline
Member
 
Join Date: Jul 2007
Posts: 11
rhivka is on a distinguished road
Wow.. you're good. I can't thank you enough for just taking the time to look over it. Most people led me to believe it was hopeless. I'm still getting these two errors that I don't understand:

Line 185: ' ( ' expected else
^

Line 193: Illegal start of expression } (the last ' } ' in the code you see)
^
I understand the actual errors, but not sure what I can change in these two areas. Do you have any ideas? It's at the end of the exceptions:

Code:
try { //Get input from Term text box, checked first before combo box term = Integer.parseInt(termTxt.getText()); rate = Double.parseDouble(rateTxt.getText()); //Input from Rate text box } catch(NumberFormatException e) { if else { //If no option is selected and combo box null, // this is an actual error. JOptionPane.showMessageDialog(null, "Invaild Entry! " + "Please Try Again", "ERROR", JOptionPane.ERROR_MESSAGE); } }
The parts where you said "//Left this out" did you mean to say I should leave it out? Or was that something I left out that I should include? I was a little confused because like one area was the textbox where the result of the calculation is displayed...although I guess that's not terribly important in this program. Maybe that's what you were saying
Reply With Quote