Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting notification from JLabel

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
during my google i read this:
Components (except JLabel) can generate events

i was surprised, but in fact couldnt find any answer to my Q:
how can i be notified when a JLabel's text change?

TiA
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

no one will claim that wasnt notified

before posting my Q i stood twice at API: addPropertyChangeListener, but gave up since couldnt find any 'text'
property
i missed the fact that could exist others:
The listener is registered for all bound properties of this class, including the following:

my actual interpretation is the following: JLabel is a bean, 'text' is also a bound property so ...

thanks a lot Michael

EDITED: i cant post the direct link to 'addPropertyChangeListener' because of javaRanch html code policies
[ June 27, 2005: Message edited by: miguel lisboa ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic