DragSource and Composite [message #512707] |
Sat, 06 February 2010 17:04 |
Dennis Melzer Messages: 244 Registered: July 2009 |
Senior Member |
|
|
Hello,
how can i use a hole composite as a DragSource?
Composite composite;
DragSource dragSource = new DragSource(composite, DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY);
Transfer[] transfers = new Transfer[] {new MyTransfer()};
dragSource.setTransfer(transfers);
dragSource.addDragListener(new DragSourceAdapter() {
@Override
public void dragStart(DragSourceEvent event) {
System.out.println("start");
}
@Override
public void dragSetData(DragSourceEvent event) {
System.out.println("setData");
}
});
It doesn't work... What is my mistake?
Thanks...
[Updated on: Sat, 06 February 2010 17:12] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03634 seconds