This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes drag &  drop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "drag &  drop" Watch "drag &  drop" New topic
Author

drag & drop

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi,
How do I drag & drop data from one field to another field?
Thanks
Angela
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
when you say from one field to another what does that mean ?
copy and paste ?
Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
ur right, I want to do copy & paste, but don't want to do right click, copy and again right click paste it. I just want select the data, drag it to another field. Is it possible in java?

Thanks
Angela
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
hi
i now you can do it within a tree
sorry but i dont know about dragging strings
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
You can learn about it here.
Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Thanks Bodie,
But the link has swing classes. Is drag-drop available in AWT?
Plz let me know,
Thanks
Originally posted by Bodie Minster:
You can learn about it here.

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I guess that depends on why you want to use AWT. If you use it becuase you suspect that your clients may not have JVM's that support swing, they may also not support DND. If that is not the case, you sould be able to use the example I referenced with AWT components.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: drag & drop
 
Similar Threads
Passed SCWCD 1.5
DnD Questions
Part I - Drag and dro clarification
dnd using control key..urgent
Feedback: Info for SCJP Tiger beta