This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.