i'm trying to move a circle on a Jform but the circle is not showing up. Below my code. I want to make it possible in the future to call several animations from this class.
Why have you got an action listener as a local variable in the constructor? Why are you starting the timer in the constructor and stopping it in the action listener? You appear to want the circle to move 100 to the right every 0.5″. That means that after 8″ it will have disappeared off the right side of your screen, never to be found again. Try moving the circle by smaller distances.
No mistake! And I'm glad you raised the point. In java 8, one would probably do something like:
and for those doing their OCAJP (like me) it is interesting to know what the difference is compared to using a local ActionListener. No doubt they have some very nasty questions about this. .
There are three kinds of actuaries: those who can count, and those who can't.
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
a bit of art, as a gift, the permaculture playing cards