javax.swing.event

Interface ChangeListener

public interface ChangeListener extends EventListener

A ChangeListener can register with an object to receive notification of state changes (for objects that support this mechanism).
Method Summary
voidstateChanged(ChangeEvent event)
Called by an object to notify the listener that the object's state has changed.

Method Detail

stateChanged

public void stateChanged(ChangeEvent event)
Called by an object to notify the listener that the object's state has changed. The incoming event identifies the source of the event, allowing the listener to differentiate when it is listening for changes in multiple sources.

Parameters: event the change event.