PDA

View Full Version : Keeping source in DragNDrop Grids



mwmcmullen
12 Aug 2010, 2:15 AM
Forgive me for a lack of memory.. but I'm trying to work out how I did something in the past.

Suppose you have a leftGrid and rightGrid, where you can drag models from the leftGrid to the rightGrid. How do you keep the models in the leftGrid, even when you've dragged them into the rightGrid?

sven
12 Aug 2010, 2:16 AM
You can change the Operation to Operation.COPY

mwmcmullen
12 Aug 2010, 2:23 AM
You can change the Operation to Operation.COPY

Works a treat by doing the
.setOperation(Operation.COPY);

Yet again, thanks, Sven!