Results 1 to 2 of 2

Thread: Text Edit event

  1. #1

    Thread Starter
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332

    Text Edit event

    i want an event to be fired everytime that the contents of a text pane are changed, any ideas how to do that? i started looking at
    processInputMethod and TextHitInfo but those seem to be dead ends
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  2. #2
    Addicted Member Mrs Kensington's Avatar
    Join Date
    Sep 2001
    Location
    Dorset, UK
    Posts
    144
    You want to add a DocumentListener to the JTextComponents Document Object.

    i.e.
    Code:
    myTextPane.getDocument().addDocumentListener(myDocumentListener);
    Ford? Theres an infinite number of monkeys outside that want to talk to you about a script of hamlet they've produced!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width