Search:

Type: Posts; User: JamesdTurnham

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,996

    Re: Gas Calculator

    Quick question. Is it possilble to add JComboBoxes to this or should I rewrite the whole thing? The book gives an example of a content pane with the ComboBoxes but they are doing different things...
  2. Replies
    12
    Views
    1,996

    Re: Gas Calculator

    Ok. Thanks for all the tips, i've got it all figured out.
  3. Replies
    12
    Views
    1,996

    Re: Gas Calculator

    I've done that and also turned the getFuelcost() into a method but now it's saying I can't have two (ints) for the method. I've already declared what the variables are so i'm puzzled why this isn't...
  4. Replies
    12
    Views
    1,996

    Re: Gas Calculator

    I've tried removing that and I still get the same error, the cursor though is right after fuelcost with the same error that it's expecting an identifier.
  5. Replies
    12
    Views
    1,996

    Re: Gas Calculator

    Line 83 is the line that i've bolded. Not sure about the semicolon's since they seem to be all correct unless i'm missing the obvious.

    Nice pic of Walter by the way.
  6. Replies
    12
    Views
    1,996

    Re: Gas Calculator

    2 errors found:
    File: C:\Users\James Turnham\Desktop\gascalculator.java [line: 83]
    Error: <identifier> expected
    File: C:\Users\James Turnham\Desktop\gascalculator.java [line: 83]
    Error:...
  7. Replies
    12
    Views
    1,996

    Gas Calculator

    I am trying to figure out if what I am doing is possible or if I have something wrong. The bolded part is where my compiler DrJava keeps giving me an error. Near as I can tell I am trying to output...
Results 1 to 7 of 7