dcsimg
Problem with move-mode Drag and Drop in JTable while using setDragEnabled()
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Holger_Hahn
Posted On:   Monday, May 13, 2002 03:07 AM

Hi,

I derived from JTable and implemented DropTargetListener interface. In the constructor I enabled DnD and created a DropTarget.

			
setDragEnabled(true);
DropTarget dropTarget = new DropTarget(this, DnDConstants.ACTION_COPY_OR_MOVE, this);


I can drag and drop some rows but only copy-mode is possible. When I e.g. press the shift-key for moving (Windows) dropping is not possible

What did I wrong?

Thanks
About | Sitemap | Contact