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...
Type: Posts; User: jbsljvc
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...
:| 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...
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 >_<
So I added
Public void calculateSubTotal()
{
salesAmount = new SalesAmount(saleAmount, quantityOfItem);
salesSubTotal = salesAmount.getSubTotal();
displaySales(); // <---- New
}
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!
I want the salesSubTotal to be displayed in the totalJTextField.. :/
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...