Using threads to paint panel in java

后端 未结 2 1856
孤独总比滥情好
孤独总比滥情好 2021-01-15 14:49

I am writing a program that has a number of different views. One of which is fairly graphics intensive (it displays an interconnected graph). Others just display small but c

2条回答
  •  独厮守ぢ
    2021-01-15 15:29

    I think what you want to do is paint to a buffer in a non UI thread (so one you manage) and just copy the buffer across when done (in the UI thread).

提交回复
热议问题