hi,
that's very nice! do you share the code under a certain license?
best, -sciss-
Am 02.05.2006 um 16:09 schrieb Timothy Wall:
There was a link posted recently that futzed with the UI delegate
and list model to make a JList animate list elements "getting out
of the way" while you dragged something over it.
I've taken the idea and made it generically applicable to any
JList, w/o modification of the JList, LAF, or model (you do have
to provide some code to say what happens when you actually drop an
item, but that's trivial). Then, with not much more than a query
replace, I applied the same technique to a JTree.
Check out the web-startable results:
http://rabbit-hole.blogspot.com/2006/04/smooth-jlist-drop-target-
animation.html
http://rabbit-hole.blogspot.com/2006/05/and-now-on-tree.html