Search:

Type: Posts; User: jbsljvc

Search: Search took 0.10 seconds.

  1. Replies
    18
    Views
    855

    Re: My program is not displaying the answer :(

    How do I set global values? What's the difference between what I did, and making them "Global."

    salesAmount has no value but didn't I give it a value by assigning it the subTotal that was returned...
  2. Replies
    18
    Views
    855

    Re: My program is not displaying the answer :(

    :| I think I'm gonna take a 15 minute break and come back to it. Maybe I'll be able to spot it when I come back xD

    --- Update ---

    Are you saying that I might have a zero value that's making my...
  3. Replies
    18
    Views
    855

    Re: My program is not displaying the answer :(

    I think it's in my class SalesAmount, float salesSubTotal.

    I returned it at the end though, I can't see where the disconnect is >_<
  4. Replies
    18
    Views
    855

    Re: My program is not displaying the answer :(

    So I added


    Public void calculateSubTotal()
    {
    salesAmount = new SalesAmount(saleAmount, quantityOfItem);
    salesSubTotal = salesAmount.getSubTotal();
    displaySales(); // <---- New
    }
  5. Replies
    18
    Views
    855

    Re: My program is not displaying the answer :(

    I can't tell :(

    My window pops up with me being able to select everything, but the textfield does not display the answer. I keep scanning through with no success!
  6. Replies
    18
    Views
    855

    Re: My program is not displaying the answer :(

    I want the salesSubTotal to be displayed in the totalJTextField.. :/
  7. Replies
    18
    Views
    855

    My program is not displaying the answer :(

    Hey guys I'm a little lost at the moment. I'm pretty sure everything is functioning properly, but my answer will not display at all. This is my first Java "multi-class" program... and I have to say...
Results 1 to 7 of 7