EDT location with several JFrame window

后端 未结 3 1470
梦毁少年i
梦毁少年i 2020-12-21 07:26

I have a Swing JFrame. If I create a new JFrame in a new thread during the program execution where will be the EDT ? In the current thread of the last JFrame window or in t

3条回答
  •  盖世英雄少女心
    2020-12-21 08:11

    The Event Dispatch Thread is fixed. It doesn't get reassigned just because you created a Swing object on another thread (which you should never do anyway).

提交回复
热议问题