Example usage for javax.swing DefaultBoundedRangeModel removeChangeListener

List of usage examples for javax.swing DefaultBoundedRangeModel removeChangeListener

Introduction

In this page you can find the example usage for javax.swing DefaultBoundedRangeModel removeChangeListener.

Prototype

public void removeChangeListener(ChangeListener l) 

Source Link

Document

Removes a ChangeListener.

Usage

From source file:Main.java

public static void main(String args[]) {
    try {/*from w  w w  . jav  a 2 s  .co m*/
        DefaultBoundedRangeModel model = new DefaultBoundedRangeModel();
        ChangeListener myListener = new MyChangeListener();
        model.addChangeListener(myListener);

        model.removeChangeListener(myListener);
    } catch (Exception e) {
        e.printStackTrace();
    }
}