Example usage for javax.swing JList removeListSelectionListener

List of usage examples for javax.swing JList removeListSelectionListener

Introduction

In this page you can find the example usage for javax.swing JList removeListSelectionListener.

Prototype

public void removeListSelectionListener(ListSelectionListener listener) 

Source Link

Document

Removes a selection listener from the list.

Usage

From source file:edu.ku.brc.ui.UIHelper.java

/**
 * Removes the ListSelection Listeners.//from   ww w . jav a2 s .  co m
 * @param comp the comp
 */
public static void removeListSelectionListeners(final JList comp) {
    if (comp != null) {
        for (ListSelectionListener l : comp.getListSelectionListeners()) {
            comp.removeListSelectionListener(l);
        }
    }
}