Solved

Java Animation - Can you "group" shapes from two classes?

Posted on 2003-10-22
1
369 Views
Last Modified: 2008-03-03
Hi there,

I'm doing a simple project where I need to create an animation.

I am trying to find out if its possible to "group" a set of (different) shapes within my animation, and then make all of them move together?
I want to group six shapes (three triangles and three circles) and make them all move together across the screen!!
(Basically I want to make a little character from simple shapes and make him move - but we've been told to only use simple script to create shapes to build our picture, so this means I can't just insert a gif!!)

Cheers in advance :)

LH

0
Comment
Question by:lucy_halton
1 Comment
 
LVL 3

Accepted Solution

by:
applekanna earned 50 total points
ID: 9596984
Check these out they have source code

http://www.javaranch.com/CodeBarn/BarnHelloAnimThreadFirst.jsp

http://www.javaranch.com/codebarn.jsp      and see under applets

example 4-8
http://www.oreilly.com/catalog/javanut/examples/

Does this help?
Cheers!
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HSSFWorkbook cannot be resolved error 10 69
map related example 6 48
How to convert from xls to xlsx using java 7 39
Adding multiple JVM environments to RedHat 6 7 20
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question