EVALUATION
Swing text components have had drag and drop support built-in since 1.4. The developer just needs to turn it on with setDragEnabled(true). If this were filed only against Swing, I'd close as not a bug. However, it mentions AWT text components as well. So I'll let the dragndrop team look at this and decide what they'd like to say about it.
###@###.### 2005-04-13 14:53:10 GMT
AWT text components do not have built-in DnD support. One has to implement it
in his/her program. It is not surprising: consider MS Notepad (which does not
support DnD) vs MS Word. If one wants to use DnD for free, employ Swing
text components.
Another submitter's proposal is to have an ability to mark the text
that are to be replaced with the dragged text. It may be somewhat useful,
but it may also seem consufing. A programmer should be able to implement
such a tricky feature for AWT text components if the feature is desirable.
May Swing want to implement the feature for its text components?
Also I believe that the feature is not prevalent. Could the submitter
point me to an application (including its version) that does support
such a feature?
###@###.### 2005-04-13 15:52:14 GMT
Thanks for asking - Swing isn't interested in implementing the "mark-for-replace" behavior. We prefer to keep our functionality to that supported by other toolkits. The described behavior is indeed confusing.
###@###.### 2005-04-13 16:07:19 GMT
The last submitter's proposal about the tooltip indicating the drop action
(e.g., copy, move) is superfluous since the cursor is intended for reflecting
the drop action during a DnD operation.
So Swing and AWT are not going to implement anything described in this RFE.
###@###.### 2005-04-14 08:56:13 GMT
|