Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Animation sequence...

 
sachin upatil
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am Animation a using applet.

I have some sequence to show. after drawing a line i have to draw a circle and then line.

So using swing.timer i draw a first line(increasing X and repaint). now how should i draw circle and another line in sequence which feel as a animation.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you have so far? Where are you stuck making progress?
 
sachin upatil
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am drawing a line successfully. in that after reaching at a particular X value i enabled flag and then drawing a circle. now after this circle i want to draw another line.

but all this i am doing in paint method. so circle and second line is appearing at a same time.

but i want it as first circle should appear and then second line.
How should i do this ? how should i use flag for this ?
 
sachin upatil
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am showing a animation of algorithm.
so i want the display of circle,line and rectangle in sequential manner.

like first i am showing START rectangle then LINE and then another RECTANGLE.
so how should i put this in paint method.

i tried delay but not working.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic