Could someone teach me how to use a swing timer with the following purpose:
swing timer
I need to have a polygon that begins being animated(simple animation such a
This example controls a javax.swing.Timer using a button, while this related example responds to a mouse click. The latter example reverses direction on each click, but start/stop is a straightforward alteration.