Java Event-Dispatching Thread explanation

后端 未结 2 1512
滥情空心
滥情空心 2020-11-22 08:40

I\'ve recently started learning and exploring the basics of GUI programming in Java.

Having been programming for a while I have only done backend work or work and as

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 09:24

    EventDispatchThread (EDT) is special thread reserved only for Swing GUI and *Swing's related events e.g. create/change/update Swing JComponents, more for asked questions here and here

    all output to the GUI from BackGround Tasks, Runnable#Thread must be wrapped into invokeLater(), from synchronized Objects into invokeAndWait();

提交回复
热议问题