JDK-6184817 : Make BasicDropTargetListener public
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-10-26
  • Updated: 2010-04-02
  • Resolved: 2005-05-20
Related Reports
Duplicate :  
Relates :  
Description
A DESCRIPTION OF THE REQUEST :
BasicDropTargetListener provides some nice common functionality for custom L&F's.  Unfortunately, it is package protected so my only recourse is to copy it.

JUSTIFICATION :
I'm adding some functionality to JTree and need to override some of the default behavior.  I'm doing this by creating a custom L&F.  Unfortunately, a lot of the default behavior (like BasicDropTargetListener) is in impossible to reach places.  Unless there is a specific reason for not making BasicDropTargetListener public to custom L&F's it should be made public.


CUSTOMER SUBMITTED WORKAROUND :
Copy the source code of the class.
###@###.### 10/26/04 21:29 GMT

Comments
EVALUATION The fixes for 4468566 and 4942851 will re-architect Swing's drop support to make it much more usable by the developer. In particular, they will provide location sensitive dropping, and much better indication of the drop location. As a result of this re-architecture, BasicDropTargetListener will dissapear, as all the details of indicating drop locations will be handled within TransferHandler (and therefore be installed on all components with TransferHandlers). Closing as a duplicate. ###@###.### 2005-05-20 15:22:18 GMT
20-05-2005