This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PropertyChange working only once (First time)  RSS feed

 
Thomas Soul
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is jTextField and it's property change:



and It works only once. Why?

ps: jTextField is connected to masterTable - a table generated by Netbeans wizard for MySQL connection. Whenever I click the table - I see the jTextField changing. But AreaText is changing only once (first time).... why?
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Impossible to say without more code. My guess is that your textfield gets replaced with a new one on occasion, and you do not add the property change listener to the new ones. But that is a guess based on no knowledge whatsoever.

Try to make a minimum example that shows the problem: an SSCCE (<- link). Perhaps in making the small example you will find the problem, and if not, you can post the small example so we can take a look at it and see why it is behaving the way it does. Did I stress enough the example should be small? ;)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!