List of usage examples for javax.swing JEditorPane removeMouseListener
public synchronized void removeMouseListener(MouseListener l)
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*/ }