Example usage for javax.swing JEditorPane removeMouseListener

List of usage examples for javax.swing JEditorPane removeMouseListener

Introduction

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

Prototype

public synchronized void removeMouseListener(MouseListener l) 

Source Link

Document

Removes the specified mouse listener so that it no longer receives mouse events from this component.

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.
 * // w w  w. java 2s .co m
 * @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;
}

From source file:org.fit.cssbox.swingbox.SwingBoxEditorKit.java

@Override
public void deinstall(JEditorPane c) {
    super.deinstall(c);
    c.removeMouseListener(mcontroller);
    c.removeMouseMotionListener(mcontroller);
    component = null;/*ww w .j av  a2 s. co m*/
}