DND - Custom drag gesture recognizer
I have a JButton as a drag source and would like to invoke a custom drag gesture
recognizer to initiate the drag gesture when the user clicks the JButton.
However, when I try to create an instance of the drag gesture recognizer
from either method below I get returned a null instead of an instantiated
myDragGestureRecognizer = (MyDragGestureRecognizer)dragSource.createDragGestureRecognizer(
MyDragGestureRecognizer.class, button, DnDConstants.ACTION_COPY_OR_MOVE,
dragSource, button, DnDConstants.ACTION_COPY_OR_MOVE, this);
Can anyone tell me how to create the custom drag gesture recognizer? Thanks.
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