Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to put animation/moving graphics in a JPanel?

807599Apr 15 2007 — edited Apr 15 2007
Hi,
I'm new to Java, I want to animate different objects (Circles squares etc.) Inside a JPanel. Is there some type of object I need for this (Canvas)? How do I do this.

Basically I want to be able to add(some shape), then call the shapes move methods etc. and it will update on screen

It was really easy to do using ACM graphics library, i don't know how to do it with Java libs
Thanks
Salik
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2007
Added on Apr 15 2007
1 comment
310 views