How to update SWT GUI from another thread in Java

前端 未结 4 735
野性不改
野性不改 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:53

    When creating the separate thread from the main thread pass the Gui object to the new thread and u can access all the properties of that GUI object.

提交回复
热议问题