I'm attempting to use an action listener to read the contents of a text field into a string when the enter key is pressed. I am getting an "illegal start of expression" error on the line: "public void actionPerformed(ActionEvent e)" at compile time. I have included the code below.
What am I doing wrong? This is probably an obvious error to the Java pros out there; but, I am still fairly new at this. Thanks.