Link to home
Start Free TrialLog in
Avatar of scjp
scjp

asked on

Drag and drop images in java

I am developing an paintbrush program in java where the user is able to draw
lines circles etc on to the canvas
I"d also like to provide him with some image icons so that user could drag and drop them on to the canvas
Can you clarify the following questions
1> Is it necessary to have DnD for the image part
2> Can you give me some info abt where i could get source code for dragging and dropping an image
 
Avatar of heyhey_
heyhey_

you can listen for mouse move events, adjust the current image coordinates and call repaint.
Hi,
Go to following site u will fine some stuff there..
http://java.sun.com/products/jfc/index.html#dnd
or
I will give another one pl. wait
ASKER CERTIFIED SOLUTION
Avatar of Sasha_Mapa
Sasha_Mapa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial