JDK-4177037 : DnD between Swing Components broken for JDK 1.2 FCS build 'K' & 'L' on Solaris
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.5.1
  • CPU: generic
  • Submitted: 1998-09-28
  • Updated: 1999-01-19
  • Resolved: 1999-01-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.2.0 1.2fcsFixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Hi
 
  Set Up : Solaris 2.5.1 , JDK 1.2 FCS build 'K' & 'L'
  When trying DnD between Swing components i am getting  the following 
exception . This happens immediately after i initiate the drag operation. 
  In 'J' build it was working properly.Even in 'K' build DnD between Swing components works well on WIndows-Nt and Windows-95
   
 ( mouse Pressed
 starting drag )
        Exception occurred during event dispatching:
java.awt.dnd.InvalidDnDOperationException: The operation requested cannot be 
performed by the DnD system since it is not in the appropriate state
        at sun.awt.motif.MDragSourceContextPeer.startDrag(Compiled Code)
        at java.awt.dnd.DragSource.startDrag(Compiled Code)
        at java.awt.dnd.DragSource.startDrag(Compiled Code)
        at java.awt.dnd.DragGestureEvent.startDrag(Compiled Code)
        at MyDragButton.dragGestureRecognized(Compiled Code)
        at java.awt.dnd.DragGestureRecognizer.fireDragGestureRecognized(Compiled 
Code)
        at MyMouseDragGestureRecognizer.mousePressed(Compiled Code)
        at java.awt.AWTEventMulticaster.mousePressed(Compiled Code)
        at java.awt.Component.processMouseEvent(Compiled Code)
        at java.awt.Component.processEvent(Compiled Code)
        at java.awt.Container.processEvent(Compiled Code)
        at java.awt.Component.dispatchEventImpl(Compiled Code)
        at java.awt.Container.dispatchEventImpl(Compiled Code)
        at java.awt.Component.dispatchEvent(Compiled Code)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
        at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
        at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
        at java.awt.Container.dispatchEventImpl(Compiled Code)
        at java.awt.Window.dispatchEventImpl(Compiled Code)
        at java.awt.Component.dispatchEvent(Compiled Code)
        at java.awt.EventQueue.dispatchEvent(Compiled Code)
        at java.awt.EventDispatchThread.run(Compiled Code)
      

 I am attaching SwingButtons.java for demonstrating this problem.

( This is re-submit of bug 4174928 which is closed as Duplicate)
Thanks
-Ramesh
  

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.2fcs INTEGRATED IN: 1.2fcs VERIFIED IN: 1.2fcs
14-06-2004

EVALUATION I am re-assigning this bug to classes_awt and to Jeff Dunn. The problem is the same as before; The X Event for the ButtonPress that Motif requires to initiate the drag operation is not available from the associated AWTEvent passed to awt_XmDnD.c:Java_sun_awt_motif_MDragSourceContextPeer_startDrag(). Without this information the drag cannot be started by Motif, this is an AWT Event problem and not D&D specific. larry.cable@Eng 1998-09-29
29-09-1998