-
Drag and Drop
I've run into some problems concerning dragging and dropping in a JTree using the right mouse button. I'm currently developing on a UNIX computer and this seems to complicate the whole thing, since DnD using the RMB is disabled or something...?
However, I managed to work around this by implementing my own subclass to MouseDragGestureRecognizer, therein listening for RMB dragging and firing an event which in turn is handled by the dragGestureRecognized event handler. This method then starts the drag operation using startDrag.. so far so good...
...But when I release the right mouse button, nothing happens! The dragDropEnd event Handler doesn't react, and neither does the mouseReleased handler (although this seems to be normal when using DnD.. right?). The mouse pointer simply won't let go of the object it's dragging. Clicking the LEFT mouse button makes the pointer drop the object, but that's not the way I want it to work.
Note that using the exact same mouseDragGestureListener and event handlers works perfectly for Drag-and-Dropping using the LEFT mouse button.
I appreciate any help!
Similar Threads
-
By Jim Pragit in forum .NET
Replies: 5
Last Post: 08-10-2005, 07:16 AM
-
Replies: 1
Last Post: 02-14-2005, 12:14 PM
-
Replies: 0
Last Post: 07-17-2002, 05:24 PM
-
Replies: 0
Last Post: 03-13-2002, 05:03 AM
-
By Sunil in forum VB Classic
Replies: 0
Last Post: 07-23-2000, 05:33 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks