Example usage for javax.swing JEditorPane removeCaretListener

List of usage examples for javax.swing JEditorPane removeCaretListener

Introduction

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

Prototype

public void removeCaretListener(CaretListener listener) 

Source Link

Document

Removes a caret listener.

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 w w w . jav  a2 s . 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;
}