• Post Reply Bookmark Topic Watch Topic
  • New Topic

Single Change in TextArea create infinite TextEvents

 
suga manian
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my application, i am using client Server communication.server handles multiple clients. From client i am dispatching the values typed in textArea, to other clients through Server console.I added TextListener to TextArea.When i am Entering the text in the text Area it creates TextEvent infinitly....could you please help me to solve this problem.

Thanks in Advance.
suga.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by suga manian:
When i am Entering the text in the text Area it creates TextEvent infinitly....could you please help me to solve this problem.


Difficult to figure out without seeing any code. Obviously your code is entering some infinite loop. Can you post the code?

Also, are you aware of the observer pattern and the Observer interface and Observable class? They can do exactly what you are looking for. This is definitely worth looking at.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!