Handling the Event Dispatch Thread

前端 未结 4 1350
一个人的身影
一个人的身影 2021-01-01 06:22

I have a question about the \'Event Dispatch Thread\'. I have a Main class that is also a JFrame. It initialises the rest of the components in the code, some of them do not

4条回答
  •  隐瞒了意图╮
    2021-01-01 07:08

    That is the way all the examples from the Sun tutorial work. Read the section from the Swing tutorial on Concurrency for more information on why it is done this way.

提交回复
热议问题