Java tutorial
//package com.java2s; //License from project: Open Source License import javax.swing.SpinnerNumberModel; import javax.swing.event.ChangeListener; public class Main { public static void dereferenceSpinnerNumberModel(SpinnerNumberModel model) { for (ChangeListener listener : model.getChangeListeners()) { model.removeChangeListener(listener); } } }