Example usage for javax.swing SpinnerNumberModel getChangeListeners

List of usage examples for javax.swing SpinnerNumberModel getChangeListeners

Introduction

In this page you can find the example usage for javax.swing SpinnerNumberModel getChangeListeners.

Prototype

public ChangeListener[] getChangeListeners() 

Source Link

Document

Returns an array of all the ChangeListeners added to this AbstractSpinnerModel with addChangeListener().

Usage

From source file:Main.java

public static void dereferenceSpinnerNumberModel(SpinnerNumberModel model) {
    for (ChangeListener listener : model.getChangeListeners()) {
        model.removeChangeListener(listener);
    }//from  w  ww.j a  v a 2  s.c o  m
}