4

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.
Anuj Jindal
  • 1,711
  • 15
  • 24

1 Answers1

3

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.

Community
  • 1
  • 1
MadProgrammer
  • 343,457
  • 22
  • 230
  • 366