Uses of Interface
javax.swing.event.ChangeListener
-
Packages that use ChangeListener Package Description javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.colorchooser Contains classes and interfaces used by theJColorChooser
component.javax.swing.plaf.basic Provides user interface objects built according to the Basic look and feel.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. -
-
Uses of ChangeListener in javax.swing
Classes in javax.swing that implement ChangeListener Modifier and Type Class and Description protected class
AbstractButton.ButtonChangeListener
ExtendsChangeListener
to be serializable.protected class
JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem
This class implements accessibility support for theJCheckBoxMenuItem
class.protected class
JMenu.AccessibleJMenu
This class implements accessibility support for theJMenu
class.protected class
JMenuItem.AccessibleJMenuItem
This class implements accessibility support for theJMenuItem
class.protected class
JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem
This class implements accessibility support for theJRadioButtonMenuItem
class.protected class
JScrollPane.AccessibleJScrollPane
This class implements accessibility support for theJScrollPane
class.protected class
JSpinner.AccessibleJSpinner
AccessibleJSpinner
implements accessibility support for theJSpinner
class.static class
JSpinner.DateEditor
An editor for aJSpinner
whose model is aSpinnerDateModel
.static class
JSpinner.DefaultEditor
A simple base class for more specialized editors that displays a read-only view of the model's current value with aJFormattedTextField
.static class
JSpinner.ListEditor
An editor for aJSpinner
whose model is aSpinnerListModel
.static class
JSpinner.NumberEditor
An editor for aJSpinner
whose model is aSpinnerNumberModel
.protected class
JTabbedPane.AccessibleJTabbedPane
This class implements accessibility support for theJTabbedPane
class.protected class
JTabbedPane.ModelListener
We passModelChanged
events along to the listeners with the tabbedpane (instead of the model itself) as the event source.protected class
ProgressMonitor.AccessibleProgressMonitor
AccessibleProgressMonitor
implements accessibility support for theProgressMonitor
class.Fields in javax.swing declared as ChangeListener Modifier and Type Field and Description protected ChangeListener
JSlider. changeListener
The changeListener (no suffix) is the listener we add to the slider's model.protected ChangeListener
JProgressBar. changeListener
Listens for change events sent by the progress bar's model, redispatching them to change-event listeners registered upon this progress bar.protected ChangeListener
JTabbedPane. changeListener
ThechangeListener
is the listener we add to the model.protected ChangeListener
AbstractButton. changeListener
The button model'schangeListener
.Methods in javax.swing that return ChangeListener Modifier and Type Method and Description protected ChangeListener
JSlider. createChangeListener()
Subclasses that want to handleChangeEvent
s from the model differently can override this to return an instance of a customChangeListener
implementation.protected ChangeListener
JProgressBar. createChangeListener()
Subclasses that want to handle change events from the model differently can override this to return an instance of a customChangeListener
implementation.protected ChangeListener
JTabbedPane. createChangeListener()
Subclasses that want to handleChangeEvents
differently can override this to return a subclass ofModelListener
or anotherChangeListener
implementation.protected ChangeListener
AbstractButton. createChangeListener()
Subclasses that want to handleChangeEvents
differently can override this to return anotherChangeListener
implementation.ChangeListener[]
DefaultSingleSelectionModel. getChangeListeners()
Returns an array of all the change listeners registered on thisDefaultSingleSelectionModel
.ChangeListener[]
DefaultBoundedRangeModel. getChangeListeners()
Returns an array of all the change listeners registered on thisDefaultBoundedRangeModel
.ChangeListener[]
DefaultButtonModel. getChangeListeners()
Returns an array of all the change listeners registered on thisDefaultButtonModel
.ChangeListener[]
AbstractSpinnerModel. getChangeListeners()
Returns an array of all theChangeListener
s added to this AbstractSpinnerModel with addChangeListener().ChangeListener[]
JSlider. getChangeListeners()
Returns an array of all theChangeListener
s added to this JSlider with addChangeListener().ChangeListener[]
JProgressBar. getChangeListeners()
Returns an array of all theChangeListener
s added to this progress bar withaddChangeListener
.ChangeListener[]
JTabbedPane. getChangeListeners()
Returns an array of all theChangeListener
s added to thisJTabbedPane
withaddChangeListener
.ChangeListener[]
JSpinner. getChangeListeners()
Returns an array of all theChangeListener
s added to this JSpinner with addChangeListener().ChangeListener[]
JViewport. getChangeListeners()
Returns an array of all theChangeListener
s added to this JViewport with addChangeListener().ChangeListener[]
MenuSelectionManager. getChangeListeners()
Returns an array of all theChangeListener
s added to this MenuSelectionManager with addChangeListener().ChangeListener[]
AbstractButton. getChangeListeners()
Returns an array of all theChangeListener
s added to this AbstractButton with addChangeListener().Methods in javax.swing with parameters of type ChangeListener Modifier and Type Method and Description void
DefaultSingleSelectionModel. addChangeListener(ChangeListener l)
Adds aChangeListener
to the button.void
DefaultBoundedRangeModel. addChangeListener(ChangeListener l)
Adds aChangeListener
.void
DefaultButtonModel. addChangeListener(ChangeListener l)
Adds aChangeListener
to the model.void
AbstractSpinnerModel. addChangeListener(ChangeListener l)
Adds a ChangeListener to the model's listener list.void
JSlider. addChangeListener(ChangeListener l)
Adds a ChangeListener to the slider.void
JProgressBar. addChangeListener(ChangeListener l)
Adds the specifiedChangeListener
to the progress bar.void
JTabbedPane. addChangeListener(ChangeListener l)
Adds aChangeListener
to this tabbedpane.void
SpinnerModel. addChangeListener(ChangeListener l)
Adds aChangeListener
to the model's listener list.void
JSpinner. addChangeListener(ChangeListener listener)
Adds a listener to the list that is notified each time a change to the model occurs.void
BoundedRangeModel. addChangeListener(ChangeListener x)
Adds a ChangeListener to the model's listener list.void
JViewport. addChangeListener(ChangeListener l)
Adds aChangeListener
to the list that is notified each time the view's size, position, or the viewport's extent size has changed.void
ButtonModel. addChangeListener(ChangeListener l)
Adds aChangeListener
to the model.void
MenuSelectionManager. addChangeListener(ChangeListener l)
Adds a ChangeListener to the button.void
AbstractButton. addChangeListener(ChangeListener l)
Adds aChangeListener
to the button.void
SingleSelectionModel. addChangeListener(ChangeListener listener)
Adds listener as a listener to changes in the model.void
DefaultSingleSelectionModel. removeChangeListener(ChangeListener l)
Removes aChangeListener
from the button.void
DefaultBoundedRangeModel. removeChangeListener(ChangeListener l)
Removes aChangeListener
.void
DefaultButtonModel. removeChangeListener(ChangeListener l)
Removes aChangeListener
from the model.void
AbstractSpinnerModel. removeChangeListener(ChangeListener l)
Removes a ChangeListener from the model's listener list.void
JSlider. removeChangeListener(ChangeListener l)
Removes a ChangeListener from the slider.void
JProgressBar. removeChangeListener(ChangeListener l)
Removes aChangeListener
from the progress bar.void
JTabbedPane. removeChangeListener(ChangeListener l)
Removes aChangeListener
from this tabbedpane.void
SpinnerModel. removeChangeListener(ChangeListener l)
Removes aChangeListener
from the model's listener list.void
JSpinner. removeChangeListener(ChangeListener listener)
Removes aChangeListener
from this spinner.void
BoundedRangeModel. removeChangeListener(ChangeListener x)
Removes a ChangeListener from the model's listener list.void
JViewport. removeChangeListener(ChangeListener l)
Removes aChangeListener
from the list that's notified each time the views size, position, or the viewports extent size has changed.void
ButtonModel. removeChangeListener(ChangeListener l)
Removes aChangeListener
from the model.void
MenuSelectionManager. removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button.void
AbstractButton. removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button.void
SingleSelectionModel. removeChangeListener(ChangeListener listener)
Removes listener as a listener to changes in the model. -
Uses of ChangeListener in javax.swing.colorchooser
Methods in javax.swing.colorchooser that return ChangeListener Modifier and Type Method and Description ChangeListener[]
DefaultColorSelectionModel. getChangeListeners()
Returns an array of all theChangeListener
s added to thisDefaultColorSelectionModel
withaddChangeListener
.Methods in javax.swing.colorchooser with parameters of type ChangeListener Modifier and Type Method and Description void
DefaultColorSelectionModel. addChangeListener(ChangeListener l)
Adds aChangeListener
to the model.void
ColorSelectionModel. addChangeListener(ChangeListener listener)
Addslistener
as a listener to changes in the model.void
DefaultColorSelectionModel. removeChangeListener(ChangeListener l)
Removes aChangeListener
from the model.void
ColorSelectionModel. removeChangeListener(ChangeListener listener)
Removeslistener
as a listener to changes in the model. -
Uses of ChangeListener in javax.swing.plaf.basic
Classes in javax.swing.plaf.basic that implement ChangeListener Modifier and Type Class and Description class
BasicButtonListener
Button Listenerclass
BasicMenuUI.ChangeHandler
As of Java 2 platform 1.4, this previously undocumented class is now obsolete.class
BasicProgressBarUI.ChangeHandler
This class should be treated as a "protected" inner class.protected class
BasicScrollBarUI.ModelListener
A listener to listen for model changes.class
BasicScrollPaneUI.HSBChangeListener
Horizontal scrollbar listener.class
BasicScrollPaneUI.ViewportChangeHandler
Listener for viewport events.class
BasicScrollPaneUI.VSBChangeListener
Vertical scrollbar listener.class
BasicSliderUI.ChangeHandler
Data model listener.class
BasicTabbedPaneUI.TabSelectionHandler
This class should be treated as a "protected" inner class.Fields in javax.swing.plaf.basic declared as ChangeListener Modifier and Type Field and Description protected ChangeListener
BasicSliderUI. changeListener
protected ChangeListener
BasicProgressBarUI. changeListener
protected ChangeListener
BasicMenuUI. changeListener
protected ChangeListener
BasicMenuBarUI. changeListener
protected ChangeListener
BasicScrollPaneUI. hsbChangeListener
protected ChangeListener
BasicColorChooserUI. previewListener
protected ChangeListener
BasicTabbedPaneUI. tabChangeListener
protected ChangeListener
BasicScrollPaneUI. viewportChangeListener
protected ChangeListener
BasicScrollPaneUI. vsbChangeListener
Methods in javax.swing.plaf.basic that return ChangeListener Modifier and Type Method and Description protected ChangeListener
BasicTabbedPaneUI. createChangeListener()
protected ChangeListener
BasicMenuBarUI. createChangeListener()
protected ChangeListener
BasicMenuUI. createChangeListener(JComponent c)
protected ChangeListener
BasicSliderUI. createChangeListener(JSlider slider)
protected ChangeListener
BasicScrollPaneUI. createHSBChangeListener()
protected ChangeListener
BasicScrollPaneUI. createViewportChangeListener()
protected ChangeListener
BasicScrollPaneUI. createVSBChangeListener()
-
Uses of ChangeListener in javax.swing.text
Methods in javax.swing.text that return ChangeListener Modifier and Type Method and Description ChangeListener[]
StyleContext. getChangeListeners()
Returns an array of all theChangeListener
s added to this StyleContext with addChangeListener().ChangeListener[]
StyleContext.NamedStyle. getChangeListeners()
Returns an array of all theChangeListener
s added to this NamedStyle with addChangeListener().ChangeListener[]
DefaultCaret. getChangeListeners()
Returns an array of all the change listeners registered on this caret.Methods in javax.swing.text with parameters of type ChangeListener Modifier and Type Method and Description void
Style. addChangeListener(ChangeListener l)
Adds a listener to track whenever an attribute has been changed.void
StyleContext. addChangeListener(ChangeListener l)
Adds a listener to track when styles are added or removed.void
StyleContext.NamedStyle. addChangeListener(ChangeListener l)
Adds a change listener.void
DefaultCaret. addChangeListener(ChangeListener l)
Adds a listener to track whenever the caret position has been changed.void
Caret. addChangeListener(ChangeListener l)
Adds a listener to track whenever the caret position has been changed.void
Style. removeChangeListener(ChangeListener l)
Removes a listener that was tracking attribute changes.void
StyleContext. removeChangeListener(ChangeListener l)
Removes a listener that was tracking styles being added or removed.void
StyleContext.NamedStyle. removeChangeListener(ChangeListener l)
Removes a change listener.void
DefaultCaret. removeChangeListener(ChangeListener l)
Removes a listener that was tracking caret position changes.void
Caret. removeChangeListener(ChangeListener l)
Removes a listener that was tracking caret position changes.
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.