Example usage for javax.swing JEditorPane addMouseMotionListener

List of usage examples for javax.swing JEditorPane addMouseMotionListener

Introduction

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

Prototype

public synchronized void addMouseMotionListener(MouseMotionListener l) 

Source Link

Document

Adds the specified mouse motion listener to receive mouse motion events from this component.

Usage

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

/**
 * Called when the kit is being installed into the a JEditorPane.
 * /*from   w  ww  . j a  va2s  .  co m*/
 * @param c
 *            the JEditorPane
 */
@Override
public void install(JEditorPane c) {
    super.install(c);

    c.addCaretListener(caretListener);
    c.addCaretListener(contentControlTracker);
    c.addMouseListener(mouseListener);
    c.addMouseMotionListener(mouseListener);
    c.addPropertyChangeListener(caretListener);
    caretListener.updateCaretElement(0, 0, c);

    initKeyBindings(c);
}

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

@Override
public void install(JEditorPane c) {
    super.install(c);
    c.addMouseListener(mcontroller);/*from w  w w .  j av a2 s.  c o  m*/
    c.addMouseMotionListener(mcontroller);
    component = c;
}