Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I use Drop and Drag in SWT&JFace???  RSS feed

 
li tianquan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a method,I want to the "Label" from one place to another with mouse,it is a puzzle for me,please help me
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the java.awt.dnd package. I have used it with Swing, but I am not sure it will work with SWT.
 
Boris Benda
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I think that this can help you. Follow this link
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/dev.html

This link will get you to SWT Component Development Resources where ( I believe) you can find the answers. On that page you will find a lot of snippets for SWT, and among them for using drag&drop.

I hope that this will help you.
 
li tianquan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to you very much,I have resolved it with your help,thanks,I hope you will help me in the future!
[ August 31, 2004: Message edited by: li tianquan ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!