From some articles, it said that if it is required to access Swing components from a
thread other than the event dispatching thread, "InvokeLater" should be used for threadsafe.
In my client program, I will create a connection frame when the "Connect" button is clicked. When the window is closed (WindowListener is used), I will try to make connection to the Data Server. Thus, I do not create a new thread in my client program. Does it mean that I do not need to use "InvokeLater"?
I saw that the assignment mentioned the threadsafe requirement. I am not sure if my client program implementation is correct.
Can anyone kindly give me some opinion?