Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Animated Drop target for JList, JTree



I can confirm a problem on 10.4.6 with Java 1.5. But it isn't a loop, as there is no CPU activity. Just a beach ball cursor and a very slow time to redraw.

But I love the effect on the list.  Its beautiful!


Sciss wrote:
p.s. the jtree version doesn't work here (mac os 10.4 / java 1.5), it comes up after a while but it looks as if there's a busy infinite loop in the awt thread ...


Am 02.05.2006 um 16:25 schrieb Sciss:

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

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden



This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Animated Drop target for JList, JTree (From: Timothy Wall <email@hidden>)
 >Re: Animated Drop target for JList, JTree (From: Sciss <email@hidden>)
 >Re: Animated Drop target for JList, JTree (From: Sciss <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.