-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0, 1.2.2, 1.2.2_005
-
beta
-
generic
-
generic, solaris_2.6
-
Verified
The built-in selection mechanism in JTree interferes with drag gesture recognition in DragGestureRecognizer (drag-n-drop API), which prevent drag-n-drop with selection in JTree from working.
Name: krT82822 Date: 09/08/99
Ctrl+drag of a selected item in JTree (and probably also JList) fails because the item gets deselected before the drag gesture is recognized. This has the additional effect that when two items
are selected and one drags from item 1 without ctrl then item 1 (only) gets dragged. When one uses ctrl-drag then item 2 gets dragged.
related to 4165577
(Review ID: 94913)
======================================================================
The problem behind his bug Id. is that selecting multiple items in a Jtree is a completly legal
and often used operation.
Initiating a drag & drop action based on this selection however will not work.
It will work as long as a single item in the Jtree is selected.
Selecting multiple items in a Jtree and initiating a drag & drop action however makes
the entire action being ignored.
This behaviour should not be considered a missing feature but a bug since:
a.) The end users assumes that a multiple select in a Jtree is a legal operation.
b.) The implementor of an application using a Jtree and darg &drop will never know
that such an action has occured. The implementor of the application is therefor
not able to give any feedback to the user in front of the screen.
The end user is therefor frustrated and he will file a call against the application using a Jtree.
Name: krT82822 Date: 09/08/99
Ctrl+drag of a selected item in JTree (and probably also JList) fails because the item gets deselected before the drag gesture is recognized. This has the additional effect that when two items
are selected and one drags from item 1 without ctrl then item 1 (only) gets dragged. When one uses ctrl-drag then item 2 gets dragged.
related to 4165577
(Review ID: 94913)
======================================================================
The problem behind his bug Id. is that selecting multiple items in a Jtree is a completly legal
and often used operation.
Initiating a drag & drop action based on this selection however will not work.
It will work as long as a single item in the Jtree is selected.
Selecting multiple items in a Jtree and initiating a drag & drop action however makes
the entire action being ignored.
This behaviour should not be considered a missing feature but a bug since:
a.) The end users assumes that a multiple select in a Jtree is a legal operation.
b.) The implementor of an application using a Jtree and darg &drop will never know
that such an action has occured. The implementor of the application is therefor
not able to give any feedback to the user in front of the screen.
The end user is therefor frustrated and he will file a call against the application using a Jtree.