how to use a swing timer to start/stop animation

后端 未结 3 1341
我在风中等你
我在风中等你 2020-11-28 15:28

Could someone teach me how to use a swing timer with the following purpose:

I need to have a polygon that begins being animated(simple animation such a

3条回答
  •  無奈伤痛
    2020-11-28 16:00

    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.

提交回复
热议问题