List of usage examples for javax.swing JTextField addMouseMotionListener
public synchronized void addMouseMotionListener(MouseMotionListener l)
From source file:Main.java
public static void main(String[] argv) throws Exception { JTextField component = new JTextField(); component.addMouseMotionListener(new MyMouseMotionListener()); JFrame f = new JFrame(); f.add(component);/*w w w . j av a2 s . c o m*/ f.setSize(300, 300); f.setVisible(true); }