|
Replies:
5
-
Last Post:
Jul 29, 2009 10:04 AM
by: sw1679
|
Threads:
[
Previous
|
Next
]
|
|
|
|
|
|
drag-n-drop panel to panel
Posted:
Sep 25, 2008 6:32 PM
|
|
|
Hi all, I'm quite new to java gui implementations. I'd ike to receive some suggestion on how to perform the drag-n-drop feature from one JPanel to another. The proble is that i need to drag an image (like an icon that represent some entity for my application) and show that image (eventually different). Just like a workflow.
I read all tutorials, but I can't get many efforts. Do I have to consider the java.awt.dnd package?
I hope to receive some suggestion.
Thanks in advance for your kindness!
|
|
|
|
|
|
|
Re: drag-n-drop panel to panel
Posted:
Sep 26, 2008 4:36 PM
in response to: sauvage
|
|
|
please, can someone explain me if I should use java.awt.dnd package? why?
I'm studying a lot and i'd like to create a good solution.
Thanks in advance
|
|
|
|
|
|
|
|
Re: drag-n-drop panel to panel
Posted:
Sep 26, 2008 8:47 PM
in response to: lordcenzin
|
|
|
TransferHandler uses java.awt.dnd package under the hood, but this package is complex to use however it is more feature complete. I think TransferHandler should be enough for your need.
|
|
|
|
|
|
|
|
Re: drag-n-drop panel to panel
Posted:
Sep 29, 2008 2:53 AM
in response to: lordcenzin
|
|
|
Hi,
Use java.awt.dnd package if you are working with AWT package. Do not mix AWT DnD implementation and Swing DnD implementation in the same project.
-- Denis.
swing@javadesktop.org wrote: > please, can someone explain me if I should use java.awt.dnd package? why? > > I'm studying a lot and i'd like to create a good solution. > > Thanks in advance > [Message sent by forum member 'lordcenzin' (lordcenzin)] > > http://forums.java.net/jive/thread.jspa?messageID=301912 >
|
|
|
|
|