• 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

getting notification from JLabel

 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
miguel lisboa
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic