> something very basic just like a block moving up and
> down
Creating it doesn't take long. Learning how to do it does.
> i have very little experiance (i can get command line
> to say hello world thats about it)
Learn a few weeks about application design, UIs, the language basics, maybe design patterns.
> soo help
With what?
> I have till thursday and am willing to work like a
> little swine
http://java.sun.com/docs/books/tutorial/uiswing/index.html
http://java.sun.com/docs/books/tutorial/uiswing/painting/index.html
I assume you don't mean a console app, because you can't really animate a console with standard Java. JCurses might help there.
"1 Specification
The aim of your first assignment is to code a simple java program. The pro-
gram must use the DrawingWindow class and the drawing ob jects provided by
the elements package as found in Bailey & Bailey. Additionally, you may use
colour from the awt colour class java.awt.Color. It makes sense to approach the
assignment in the order sec 1.1 to sec 1.3.
1.1 Pass
Draw an ob ject on the screen using the Java Element package. The ob ject can
be anything you want ( except a face - as this is too similar to the tutorial, or
a tree as I use that example later myself ). The ob ject should be composite -
that is consist of more than one part, e.g you could draw a tree, consisting of a
trunk with two branches and some leaves. To pass, your program must compile,
run and the image must be of sufficent complexity, consisting of numerous parts
and a range of colours.
1.2 Merit
Place the same ob ject that was created in part 1 in a few places on the screen.
For example if the ob ject was a tree then create a small forest each tree being
identical except for its position. Think carefully how best to achieve this, if I
asked for a forest with a thousand trees, would you code each tree individually?
What coding ideas could you use to simplify the task?
1.3 Distinctive
The ob jects should now be animated, this could be as simple as altering their
colour, the leaves on the trees mentioned in sections 1.1 and 1.2 could change
from green to brown, or even better the leaves could fall from the trees onto the
ground. You will need to introduce a time delay in the program, then you may
use a method such as,
"
here is exactly what i need to do
im not asking for help just how long
Hello,
I am a student at the same campus as yourself, i hope that you got but java to work, i am guessing u used a for loop to help animate the design? by clearing the screen and painting the new object? For the distinction i believe i could be wrong use a while loop and the start stop functions, well advice given by the head of department.
I hope everything went well, and the database exam wasn't to bad. Have you sat your methods test as yet?