answersLogoWhite

0

You would want to register a MouseMotionListener object with the Component object that contains your image.

myComponent.addMouseMotionListener(new MouseMotionListener() {

void mouseMoved(MouseEvent ev) {

// Put code you want to happen when the mouse moves.

// Example: print out the x,y coordinates of the mouse in the object.

System.out.println(ev.getPoint());

}

void mouseDragged(MouseEvent ev) {

// Needs to be implemented as part of MouseMotionListener

}

});

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you write a code in java script for follow the image with cursor?

<html> <head> <script language="javascript"> function f_follow(event) { temp.style.position="absolute";//this is necessary temp.style.left=event.clientX; temp.style.top=event.clientY; } </script> <body onmousemove="f_do(event)"> <img src="....." id="temp"/> </body> </html>


Moving an image is called what?

Moving an image from one location to another is called dragging or repositioning the image. This action involves clicking on the image and holding down the mouse button while moving the image to a new location on the screen.


When was Museum of the Moving Image - London - created?

Museum of the Moving Image - London - was created in 1988.


When did Museum of the Moving Image - London - end?

Museum of the Moving Image - London - ended in 1999.


When was Association of Moving Image Archivists created?

Association of Moving Image Archivists was created in 1990.


What is a GIF on Tumblr?

A moving image.


Where do you get moving pictures for Howrse?

Just tpye in moving pictures in google and then copy the image by right clicking and click on copy image


What is the web address of the American Museum Of The Moving Image in Astoria New York?

The web address of the American Museum Of The Moving Image is: http://www.movingimage.us


What is the phone number of the American Museum Of The Moving Image in Astoria New York?

The phone number of the American Museum Of The Moving Image is: 718-784-4520.


What are the release dates for Moving Image Salutes Will Smith - 2007 TV?

Moving Image Salutes Will Smith - 2007 TV was released on: USA: 12 January 2007


Where is the American Museum Of The Moving Image in Astoria New York located?

The address of the American Museum Of The Moving Image is: 3601 35Th Ave, Astoria, NY 11106-1226


Where is the Tennessee Archive Of Moving Image And Sound in Knoxville Tennessee located?

The address of the Tennessee Archive Of Moving Image And Sound is: Po Box 2773, Knoxville, TN 37901-2773