Is this possible in Java ?

Hi ,

I have my Swing application which has a Calendar component like the Windows system Calendar component . I want it to be animated whenever the Component is closed by the

close button on top like a Mac OSX Widgets closing animation. So, it is like squeezing the

component panel to the close button and disappear.

Are there any ideas which you can share to create this ?

Thanks in advance ,

[432 byte] By [SasiKumar_Ua] at [2007-11-27 10:53:23]
# 1

Use a Swing Timer to schedule the animation:

http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html

camickra at 2007-7-29 11:43:51 > top of Java-index,Desktop,Core GUI APIs...
# 2

but , i am looking for a way to squeeze the swing Window component like the OSX animation does . So, is there a way to squeeze the Window component ?

BTW , thanks for the reply ...

SasiKumar_Ua at 2007-7-29 11:43:51 > top of Java-index,Desktop,Core GUI APIs...
# 3

When the Timer fires you change the size of the window or change the location. You can do whatever you want to do for your animation.

camickra at 2007-7-29 11:43:51 > top of Java-index,Desktop,Core GUI APIs...