Is Swing thread-safe? What do you mean by Swing thread-safe?

Compiled By Unknown - No Comments
You can simply this question as No, Swing is not thread-safe, but you have to explain what you mean by that even if interviewer doesn't ask about it. When we say swing is not thread-safe we usually refer its component, which can not be modified in multiple threads. All update to GUI components has to be done on AWT thread, and Swing provides synchronous and asynchronous callback methods to schedule such updates.

Tags:

No Comment to " Is Swing thread-safe? What do you mean by Swing thread-safe? "