JDK-6344471 : Restore TransferHandler.TransferInfo.getDropAction()
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_2000
  • CPU: generic,x86
  • Submitted: 2005-11-01
  • Updated: 2017-05-16
  • Resolved: 2005-11-30
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 Availabitlity Release.

To download the current JDK release, click here.
6 b62Fixed
4942851 added a getDropAction() method as part of TransferHandler.TransferInfo. This method has subsequently been removed as part of another fix. This was a mistake and it should be re-added.

EVALUATION getDropAction() was removed since it was thought that it may prevent future attempts at allowing the developer to choose a drop action. By reflecting on how future API may look, we've realized this is not the case. It can therefore be put back into the code. Also, now that this is fixed, we can solve a problem I've discovered with text DnD. The problem is that when dragging from and to the same text component, nothing happens when dropping into the area of text that was selected for the drag. This is correct for moves, but the wrong thing for copies. This can now be remedied.