How to update SWT GUI from another thread in Java

前端 未结 4 733
野性不改
野性不改 2020-12-05 11:36

I am writing a desktop application using SWT. What is the simplest way to update GUI controls from another thread?

4条回答
  •  心在旅途
    2020-12-05 11:55

    You can actually just sent a message to the GUI thread that some modification has been changed. This is cleaner if you see it from MVC perspective.

提交回复
热议问题