javax.swing.event
public interface ChangeListener extends EventListener
ChangeListener
can register with an object to receive
notification of state changes (for objects that support this mechanism).Modifier and Type | Method and Description |
---|---|
void |
stateChanged(ChangeEvent event)
Called by an object to notify the listener that the object's state has
changed.
|
void stateChanged(ChangeEvent event)
event
identifies the
source
of the event, allowing the listener to differentiate
when it is listening for changes in multiple sources.event
- the change event.