Example usage for javax.swing JEditorPane removePropertyChangeListener

List of usage examples for javax.swing JEditorPane removePropertyChangeListener

Introduction

In this page you can find the example usage for javax.swing JEditorPane removePropertyChangeListener.

Prototype

public void removePropertyChangeListener(PropertyChangeListener listener) 

Source Link

Document

Removes a PropertyChangeListener from the listener list.

Usage

From source file:org.docx4all.swing.text.WordMLEditorKit.java

/**
 * Called when the kit is being removed from the JEditorPane. This is used
 * to unregister any listeners that were attached.
 * //from  ww w. j  a v  a  2s .  c  om
 * @param c
 *            the JEditorPane
 */
public void deinstall(JEditorPane c) {
    super.deinstall(c);
    c.removeCaretListener(caretListener);
    c.removeCaretListener(contentControlTracker);
    c.removeMouseListener(mouseListener);
    c.removeMouseMotionListener(mouseListener);
    c.removePropertyChangeListener(caretListener);

    this.plutextClient = null;
}