This si pretty cool, it is pretty slow though, is this using the old
version with the RGB or with the getInt?
On Fri, 17 Dec 2004 11:47:19 -0500, Sam Berlin <email@hidden> wrote:
> Neat-o! I hadn't yet had a chance to do this (was going to give it a
> shot sometime this weekend). It's great that you were able to do it!
>
> Thanks,
> Sam
>
> On Dec 17, 2004, at 11:38 AM, Luca Lutterotti wrote:
>
> > Hi,
> >
> > so I liked a lot the Dashboard effect of Dmitry, so I took his code
> > and I implemented it following the indication of Sam (below).
> >
> > It is may be a little rude, but it works.
> >
> > You can download a zip archive with source code, the Dmitry example
> > (simplify) and compiled classes at:
> > http://www.ing.unitn.it/~luttero/javaonMac/archives/
> > DashboardEffect_luca.zip
> >
> > unzip and run with:
> >
> > java DashboardEffect
> >
> > so actually it works exactly as in Sam request:
> >
> > JPanel panel = new JPanel();
> > AnimatingCardLayout layout = new AnimatingCardLayout();
> > layout.setAnimation(new DashboardAnimationCardLayout()); // if
> > someone wants to provide their own animation
> > panel.setLayout(layout);
> > panel.add(comp1, "page1");
> > panel.add(comp2, "page2");
> >
> >
> > and then in the code you can just use layout.show(panel, "page1");
> > In principle you can put more than 2 panels (I just used the original
> > CardLayout) and also the next(), previous() etc. methods.
> >
> > If no Animation is specified the default one is exactly as in
> > CardLayout. Custom animations can be used as well, check the
> > DashboardCardLayout for an example.
> >
> > Hope it can help someone. If you do some modifications, improvements,
> > please let me know, or put them in this list.
> >
> > Best regards,
> > Luca Lutterotti
> >
> >
> > On Dec 13, 2004, at 18:57, Sam Berlin wrote:
> >
> >> JPanel panel = new JPanel();
> >> AnimatingCardLayout layout = new AnimatingCardLayout();
> >> layout.setAnimation(new MyAnimation()); // if someone wants to
> >> provide their own animation
> >> panel.setLayout(layout);
> >> panel.add(comp1, "page1");
> >> panel.add(comp2, "page2");
> >>
> >> and then all someone has to do is call "layout.show(container,
> >> "page1");" or layout.show(container, "page2");" and it would flip
> >> between the cards using the animation
> >
> > _______________________________________________
> > 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
>
_______________________________________________
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