Hi there I am new to JAVA,

I would like to create a line 2 pixels wide that moves across my screen.

The line should be a bezier curve and should animate pixel by pixel.

I would like to have 200 fps and four seconds from animation start to end.

http://www.itfreaks.com/forum/showthread.php?t=2897

The above is a thread in which I learnt to create a curve.

I am stuck ... all help is appreciated please contact me at JGee2005@aol.com.

Thank you in advance.

Recommended Answers

All 2 Replies

I wouldn't waste my time writting some method to create a parabola like that. Use drawPolyline(), it's much easier. You could use a Timer object to keep track of how long, and then just increment the variables and call a repaint.

Thankyou I shall look into doing that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.