The interfaceMouseMotionListener is used for receiving mouse motion events on a component. The class that process mouse motion events needs to implements this interface.
Syntax:public interface MouseMotionListener
extends EventListener
Example:class CustomMouseMotionListener implements MouseMotionListener {
public void mouseDragged(MouseEvent e) {
statusLabel.setText("Mouse Dragged: ("+e.getX()+", "+e.getY() +")");
}
public void mouseMoved(MouseEvent e) {
statusLabel.setText("Mouse Moved: ("+e.getX()+", "+e.getY() +")");
}
}
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1016 / 159176124. Delta: 0.00284 с