Yes the simulation is perfect, thank you very much for your help.
i don't understand some things;the code is written used the javax.swing.timer  and can modify or add of the code?

Thank you a lot for your collaboration.