Example usage for javax.swing JEditorPane removeMouseMotionListener

List of usage examples for javax.swing JEditorPane removeMouseMotionListener

Introduction

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

Prototype

public synchronized void removeMouseMotionListener(MouseMotionListener l) 

Source Link

Document

Removes the specified mouse motion listener so that it no longer receives mouse motion 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.
 * /*from   w  w w .  j  a  v  a  2  s  .  com*/
 * @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);/* w  ww .j  ava 2 s.c  om*/
    c.removeMouseMotionListener(mcontroller);
    component = null;
}