• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Single Change in TextArea create infinite TextEvents

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic