Java & Netbeans: Sum multiple values from jTextField and Display the total to another jTextField

The code below is use for calculating two values from jTextField and display the total value to another jTextField. You can also calculate multiple values by using the four mathematical calculations.

Double totv = (Double.parseDouble(firstValue.getText()) + 
(Double.parseDouble(secondValue.getText())) + 
(Double.parseDouble(lbl_hours2.getText())) );


Leave a Reply

Be the First to Comment!

Notify of