File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes drag n drop of icon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "drag n drop of icon" Watch "drag n drop of icon" New topic
Author

drag n drop of icon

Vikas Kumar Sahu
Ranch Hand

Joined: Dec 02, 2003
Posts: 59
Hi All,

Can n e 1 solve my problem,
I m making a tool which should have feature of drag n drop of icons.
It is like in VB, if u want to place text box u can simply llick on
text component and it will place over the form.
Same I want when I want click over icon and drag it this should place
over my form.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Here's one way to do it. You can drag images off the top panel and down to the lower panel. Once (the mouse button is) released the image is set into a JLabel and you can then click on it and drag it around in the lower panel.

[ May 16, 2004: Message edited by: Craig Wood ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: drag n drop of icon
 
Similar Threads
Just Taken It! EJB2.0 Spec + Kathy Sierra's Last Minute Tips
dragging Jlabel
which component i can use to put image on?
Creating a basic form
drag n drop