Trying to find out how to read in 3 decimal number values add them all together and out a JOptionPane MessageDialog window showing the initial 3 input numbers and the sum answer. Also if it possible to add a button on the JOptionPane Message window to create a text file output of the input numbers and sum answer.
Quite a few people suggest doing it with JPanel and JTextFields. I was interested to use the program and tried to see if it worked storing inputs into the field variables, but on adding out.println(value1) I get error messae,
JOptionPaneMultipleInput2.java:25: error: cannot find symbol
symbol: variable value1
location: class JOptionPaneMultipleInput2
posted 1 month ago
Just remove this query as I have managed to resolve my problems with the program.