Learning language is easy but learning basics is difficult
Dave Tolls wrote:Where is the variable total declared?
It looks like it's not local to the method, so the value is retained between calls to stateChanged.
Learning language is easy but learning basics is difficult
Carey Brown wrote:Where do you initialize total to zero?
Learning language is easy but learning basics is difficult
Learning language is easy but learning basics is difficult
Can you explain more on this ?Rob Camick wrote:Don't keep a "total" variable.
simply iterate through all the rows in the table to recalculate the total.
Learning language is easy but learning basics is difficult
Learning language is easy but learning basics is difficult
Learning language is easy but learning basics is difficult
Learning language is easy but learning basics is difficult
Learning language is easy but learning basics is difficult
Learning language is easy but learning basics is difficult
John Joe wrote:How should I get rid of the first row of JTable in order to get the total value ?
Learning language is easy but learning basics is difficult
Learning language is easy but learning basics is difficult
All things are lawful, but not all things are profitable.
We must storm this mad man's lab and destroy his villanous bomb! Are you with me tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|