I am using Card layout in java swing application and want to perform some nice effect on card change from one to another

In a java Swing application and if we are using Card layout for some panel than we use to show() method to show particular card.Show Method just make visible given card and disappear current card. Is it Possible to add some effects between this card swapping?

effects like:-

  1. List item
  2. Left to rightte moving.
  3. Top to Bottom.
  4. Fade in and Fade out effect.
  5. Zooming Effect.

Answers


Not with card layout.

You could take a look at the SlidingLayout, which is based on The Universal Tween Engine

Another approach is to design a layout manager capable of providing the required functionality. This is far more complex, but gives you an idea of what might be involved...

For example, Animations when using Gridbag Layout.


Need Your Help

Angular binding breaking the decimal places

javascript angularjs binding decimal

Inside my $scope i have tobing= 2.00 or tobind=2.20 and i am binding it to

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.