[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2003-10-22
1
Medium Priority
?
397 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
applekanna earned 100 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

650 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