Issues: Creating a very accurate Swing Timer

前端 未结 4 542
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 12:27

In order to make SwingTimer accurate, I like the logic and example suggested by @Tony Docherty On CR. Here is the Link.

In order to highlight the given

4条回答
  •  清酒与你
    2020-12-31 13:22

    Have you considered java.util.Timer and scheduleAtFixedRate? You will need a little extra work to do stuff on the EDT, but it should fix the issue of accumulated delays.

提交回复
热议问题