I have multiple JSpinner in application as image below.
If the quantity is 1, it will add a new row, if more than 1, the row will be modified. If the quantity is 0 , the row will be removed.
How can I subtract the total value if the quantity is decreasing ?