I am reading the sun tutorial and I don't see in this code where the 2nd addActionListener is in the code for both the enter and button. They write in the tutorial:
We want to perform the conversion when the user clicks the button or presses Enter in the text field. To do so, we add an action event listener to the convertTemp button and tempCelsius text field.
convertTemp.addActionListener(this);
tempCelsius.addActionListener(this);
...
But I don't see it in the code. It works, for both button and enter, but where is it in the code? Thanks, Tom
I]