-
Enhancement
-
Resolution: Unresolved
-
P5
-
None
-
1.4.0
-
sparc
-
solaris_8
Name: jk109818 Date: 07/28/2003
A DESCRIPTION OF THE REQUEST :
There is no easy way to modify the mousing
behavior of the JTree across all platforms.
The groundwork for such a modification is already
there in BasicTreeUI in the form of 12+ different
Handlers (including a MouseHandler. Unfortunately,
the mouse handler is not directly settable, and the
only way to change the behavior (short of
rewriting the ComponentUI) is to subclass the TreeUI
for all the different target platforms and then override
the "createHandler" method for the handler responsible
for the behavior you want to modify. Why not make life
easy for everyone and create setter functions in BasicTreeUI
for all those handlers?
JUSTIFICATION :
In my experience, it is not uncommon to need
slight variants of Component behavior.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Have a "setMouseHandler" method in BasicTreeUI
(Incident Review ID: 192898)
======================================================================