> Hi all,
>
[quoted text clipped - 6 lines]
> my guess would be that the JTree doesn't allow the
> relevant events to propogate down far enough.
cell renderer is not really shown/ added to JTree as child component. It is
used only to paint cell region, but it is painting on JTree component.
That's why you can't attach drop or any other evenets to renderer, you have
to do it on Jtree component and then use getPathForLocation( x, y) to find
out which cell is relevant for the event. With all other mouse events like
mouse clicks, mouse moves etc. you have to use same method.
> Any insights/recommendations ?
> Thanks
roadkill - 02 Jan 2005 04:17 GMT
> > Hi all,
> >
> > Can I use my custom cell renderer as a drop target ?
>
> cell renderer is not really shown/ added to JTree as child component. It is
> used only to paint cell region, but it is painting on JTree component.
Ah, makes sense - thanks :)