javax.swing.event
Interface ChangeListener

All Superinterfaces:
EventListener sample code for java.util.EventListener definition code for java.util.EventListener
All Known Implementing Classes:
AbstractButton.ButtonChangeListener sample code for javax.swing.AbstractButton.ButtonChangeListener definition code for javax.swing.AbstractButton.ButtonChangeListener , BasicButtonListener sample code for javax.swing.plaf.basic.BasicButtonListener definition code for javax.swing.plaf.basic.BasicButtonListener , BasicMenuUI.ChangeHandler sample code for javax.swing.plaf.basic.BasicMenuUI.ChangeHandler definition code for javax.swing.plaf.basic.BasicMenuUI.ChangeHandler , BasicProgressBarUI.ChangeHandler sample code for javax.swing.plaf.basic.BasicProgressBarUI.ChangeHandler definition code for javax.swing.plaf.basic.BasicProgressBarUI.ChangeHandler , BasicScrollBarUI.ModelListener sample code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener definition code for javax.swing.plaf.basic.BasicScrollBarUI.ModelListener , BasicScrollPaneUI.HSBChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.HSBChangeListener definition code for javax.swing.plaf.basic.BasicScrollPaneUI.HSBChangeListener , BasicScrollPaneUI.ViewportChangeHandler sample code for javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler definition code for javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler , BasicScrollPaneUI.VSBChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.VSBChangeListener definition code for javax.swing.plaf.basic.BasicScrollPaneUI.VSBChangeListener , BasicSliderUI.ChangeHandler sample code for javax.swing.plaf.basic.BasicSliderUI.ChangeHandler definition code for javax.swing.plaf.basic.BasicSliderUI.ChangeHandler , BasicTabbedPaneUI.TabSelectionHandler sample code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandler definition code for javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandler , JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem sample code for javax.swing.JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem definition code for javax.swing.JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem , JMenu.AccessibleJMenu sample code for javax.swing.JMenu.AccessibleJMenu definition code for javax.swing.JMenu.AccessibleJMenu , JMenuItem.AccessibleJMenuItem sample code for javax.swing.JMenuItem.AccessibleJMenuItem definition code for javax.swing.JMenuItem.AccessibleJMenuItem , JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem sample code for javax.swing.JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem definition code for javax.swing.JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem , JScrollPane.AccessibleJScrollPane sample code for javax.swing.JScrollPane.AccessibleJScrollPane definition code for javax.swing.JScrollPane.AccessibleJScrollPane , JSpinner.AccessibleJSpinner sample code for javax.swing.JSpinner.AccessibleJSpinner definition code for javax.swing.JSpinner.AccessibleJSpinner , JSpinner.DateEditor sample code for javax.swing.JSpinner.DateEditor definition code for javax.swing.JSpinner.DateEditor , JSpinner.DefaultEditor sample code for javax.swing.JSpinner.DefaultEditor definition code for javax.swing.JSpinner.DefaultEditor , JSpinner.ListEditor sample code for javax.swing.JSpinner.ListEditor definition code for javax.swing.JSpinner.ListEditor , JSpinner.NumberEditor sample code for javax.swing.JSpinner.NumberEditor definition code for javax.swing.JSpinner.NumberEditor , JTabbedPane.AccessibleJTabbedPane sample code for javax.swing.JTabbedPane.AccessibleJTabbedPane definition code for javax.swing.JTabbedPane.AccessibleJTabbedPane , JTabbedPane.ModelListener sample code for javax.swing.JTabbedPane.ModelListener definition code for javax.swing.JTabbedPane.ModelListener , ProgressMonitor.AccessibleProgressMonitor sample code for javax.swing.ProgressMonitor.AccessibleProgressMonitor definition code for javax.swing.ProgressMonitor.AccessibleProgressMonitor

public interface ChangeListener
extends EventListener sample code for java.util.EventListener definition code for java.util.EventListener

Defines an object which listens for ChangeEvents.


Method Summary
 void stateChanged sample code for javax.swing.event.ChangeListener.stateChanged(javax.swing.event.ChangeEvent) definition code for javax.swing.event.ChangeListener.stateChanged(javax.swing.event.ChangeEvent) (ChangeEvent sample code for javax.swing.event.ChangeEvent definition code for javax.swing.event.ChangeEvent  e)
          Invoked when the target of the listener has changed its state.
 

Method Detail

stateChanged sample code for javax.swing.event.ChangeListener.stateChanged(javax.swing.event.ChangeEvent) definition code for javax.swing.event.ChangeListener.stateChanged(javax.swing.event.ChangeEvent)

void stateChanged(ChangeEvent sample code for javax.swing.event.ChangeEvent definition code for javax.swing.event.ChangeEvent  e)
Invoked when the target of the listener has changed its state.

Parameters:
e - a ChangeEvent object