File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Add mouselistener to an image
Demith Waruna Samaraweera
Joined: Sep 20, 2004
Jun 15, 2005 05:21:00
I have an application where a Label is added on a LScrollPannel and my image is loaded on to the
. I want add mouseMotionLisener to image loaded in the
, and also change the origin coordinates
Joined: Jul 11, 2001
Jun 15, 2005 07:29:00
You can't add it to the image. You have to add it to a component, like,
GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: Add mouselistener to an image
Image in JTable
Can i add an image directly to a JLabel or JWindow?
Adding an Image to a Panel
QTCanvas (QuickTime) & java
Transparent Swing components?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014