Advertisement

04.16.2008 at 11:50AM PDT, ID: 23328375 | Points: 500
[x]
Attachment Details

While drag and drop how to preserve orginal object?

Tags: SUN, JAVA, 1.5jdk
When drag and drop is perforrmed, How can i preserve the datasouce and only allow a copy to be dragged to the droptarget?
I tried this;

DropTarget dropTarget1 = new DropTarget(test, DnDConstants.ACTION_COPY, dndListener);
                        DragSource dragSource = new DragSource();
                        DragGestureRecognizer dragRecognizer1 = dragSource.createDefaultDragGestureRecognizer(newbutton1, DnDConstants.ACTION_COPY, dndListener);

But it moved the datasouce(newbutton1) completely.
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: MichaelCroteau
Question Asked On: 04.16.2008
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
04.16.2008 at 11:52AM PDT, ID: 21370825

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.16.2008 at 12:41PM PDT, ID: 21371260

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.16.2008 at 01:18PM PDT, ID: 21371594

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.16.2008 at 01:38PM PDT, ID: 21371751

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628