Ralph Cook wrote:Have you tried anything yet? Is there a specific question, or do you just want someone to code for you?
Be sure, also, you know the difference between "registering an event" and "responding to an event". You say you want to register an event each time the space bar is pressed; I doubt that. I think what you want to do is execute some code of yours when the space bar is pressed; that would be "responding"; you would "register" a routine to be executed when the space bar is pressed; that would be done once, and then the routine would execute each time the key is pressed.
rc
i 'm trying to code b myself. the problems that i am facing right now is, first of all for following declarations
JTextArea txtInput = new JTextArea(15,1);
txtInput.TextListener(new TextInputListener());
this is giving the error:
cannot find symbol.
and secondly i want my code to respond to do a specific task each time space bar is pressed!!!