The Source for Java Technology Collaboration
User: Password:



Kirill Grouchnikov

Kirill Grouchnikov's Blog

Animating your lists, tables and trees - part II

Posted by kirillcool on October 20, 2006 at 10:31 PM | Comments (5)

The first part of this series introduced animation fades on lists, trees and tables in Swing applications running under the latest development version of Substance look-and-feel. The release candidate for version 3.1 (code-named Honolulu) is on October 30, and there is still room to add minor user-requested features. The users who download and try the development drops inevitably face defects, but they also have a great opportunity to comment and affect new features. One of the users (thanks, Raj) requested that the table rollover animation should highlight the entire row.

Now, this is not as straightforward as it sounds, since the JTable API provides two methods, setRowSelectionAllowed and setColumnSelectionAllowed. When both are set to either true or false, clicking a cell selects that cell. When the first is set to true and the second to false, clicking on a cell selects the entire row. When the first is set to false and the second to true, clicking on a cell selects the entire column.

The latest version of 3.1dev drop features the rollover animation effects that follow the same algorithm. Click on a play button below to view a short screencast that illustrates this feature.


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • impressive as always

    Posted by: benloud on October 21, 2006 at 09:45 PM

  • You rock :)

    Posted by: mac_systems on October 23, 2006 at 07:45 AM

  • Thanks :)

    Posted by: kirillcool on October 23, 2006 at 01:11 PM

  • Hey, kirill, think you can add this kind of animation or this one (yes, that's my blog)?

    Posted by: twalljava on October 24, 2006 at 04:10 AM

  • Timothy - i've sent you an e-mail requesting clarification whether you're OK with the BSD license. In addition, do I need to contact the owners of the original code to request their permission as well, or do you have the full copyright to the code on your blog?

    Posted by: kirillcool on October 25, 2006 at 01:55 PM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds