Re: Events



On Wed, 23 Jan 2008 10:08:53 -0800 (PST), Akki
<lodhaakhil85@xxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :

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.

A KeyPressed event is a low level event. It gets converted to various
other types of event. Check the JavaDoc for JTextArea to see what
sorts of listeners it likes.

See http://mindprod.com/jgloss/event.html
http://mindprod.com/jgloss/jtextarea.html
--
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com
.



Relevant Pages

  • Re: no pointer in Java => my problem
    ... sorts out nested attributions? ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.programmer)
  • Re: File level asserts.
    ... Other sorts of special restrictions - which program s can read, ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: how to get invloved in the other java group
    ... There are three sorts of discussions: ... list serves. ... follow your nose. ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.help)
  • Re: Connecting socket thread to gui
    ... Passing the JTextArea to the thread? ... StringSocketThread that takes a Socket on creation ... line is received, or the socket state changed, all listeners are ...
    (comp.lang.java.gui)
  • Re: Connecting socket thread to gui
    ... Passing the JTextArea to the thread? ... StringSocketThread that takes a Socket on creation ... line is received, or the socket state changed, all listeners are ...
    (comp.lang.java)