• Post Reply Bookmark Topic Watch Topic
  • New Topic

Drag and Drop

 
Samira Mastali
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
I am working on a new project.Client has asked for Drag and Drop capability in the UI. Can I use swing or I have to use the awt.What is the best approach.
Thanks,
Samira
 
Steffen Foldager
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Samira
In a project I had to drag&drop table rows form one table to another within the same application. I found that the "real" DnD approach was to complicated (DataFlavors, TransferHandlers, ..). And I couldn't really figure out which events fired at which gestures.
So, I used some of the DnD functionality to extract row numbers from the target and source table and did a manual delete/insert.
This is just to say that you could go all the way, or you could take convinient shortcuts.
There's a good DnD FAQ at
rockhoppertech
An example at
sun
And a longer explanation at
javaworld
Steffen
(May Denmark win the World Cup, pleeease...)
 
Samira Mastali
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Steffen,
Thanks fo ryour prompt response.I Will go through everything that you mentioned.Is that possible that I ask you more questions as I go forth in the project?
my e-mail address is: samira_mastali@hotmail.com
Thanks,
Samira
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!