Hi All,
I'm getting a little frustrated with a project I'm working on for class. I've gotten pretty far into it but it seems that every additional step is fighting me.
The problem I'm trying to resolve now is getting my ActionEvent to send the value input in the JTextArea out to be calculated, then to display the result in my result JLabel.
Here is an image of the GUI to give you a better idea of this program is doing.
The basic procedure the teacher is asking for is the user is supposed to enter a temperature in the input. The user then clicks the input scale, and then on the output scale selection the converted value is to be displayed in the output area.
As I mentioned my problem is in the sending of the input value to my calculation area, and getting the value to display in the JLabel.
How should I approach this solution? Do I need to have a listener after the JTextArea of the input box?
Will that allow me to limit the input values to numbers only?
Here is the section of code my ActionListener is:
All the calculations are required to occur in a separete
java file, which what I think is tripping me up. How do I send a value from the JTextArea into the Calc.celToFahr method?