Duplicate :
|
Some methods of JTextComponens claim to be "thread safe", see for example JTextComponent.setText() its javadoc says: <This method is thread safe, although most Swing methods are not> But looking to its implementation it's quite obvious that it isn't thread safe if I setText() on one thread and getText() on another thread it will likely cause a problem Current situation: text package claim some of their methods as thread safe Expected: No misleading note about thread safety