A DESCRIPTION OF THE REQUEST :
The BasicTreeUI installListeners() method directly instantiates a TreeDropTargetListener to respond to DropTarget events. The rest of the installListeners() method use factory methods to add a level of indirection in creating these listener classes.
A factory method should be used for TreeDropTargetListener too to allow custom L&Fs to provide custom TreeDropTargetListener.
The pattern of using factory methods should be part of the L&F coding standards.
EXPECTED VERSUS ACTUAL BEHAVIOR :
I'd like to see a createDropTargetListener() method in BasicTreeUI with installListeners() calling it.
CUSTOMER SUBMITTED WORKAROUND :
The workaround is to copy the BasicTreeUI installListeners() method to BasicTreeUI subclass and change the creation of TreeDropTargetListener to desired class.
###@###.### 10/26/04 22:30 GMT