Events



Hi,

I am a new to GUI programming in Java. I want to creat a GUI in which
I will ask the user to write a word in the Text field, based on which
the s/w will call certain functions. I have created JFrame inside
which I have made a JDesktopPane, inside which I have the JScrollPane
with the JTextArea.
I have registered the KeyPressed Event with the JTextArea. But when I
write something and press Enter, the Event is not recognized and the
appropriate action is not taken.

How do I solve this issue ?

TIA,
Darth


.