I need to write a program to teaching by demonstration using handguiding motion but i don't really know how to do it. I have a few question:
1. I know that i need to create frames of current positions every several milliseconds but i don't know how to do it. Do i have to create another thread or i can do it in background task?
2. Should i do it by using arraylist and every next step frame have to be added to it?
3. Which is the best way to save frames? I tried OutputObjectStream but frame class doesn't implement "Serializable" interface so it is impossible and is it good to store data in txt file or better in other type?
I would be very grateful for your help.