I agree with Roel De Nijs.
Helen Ma wrote:As far as the exam is a concern, if two threads try to write a string into a JTable cell, should I still synchronized the JTable object?
Well, is it really going to happen? The chances are very high that the String will come from server as part of remote object, and your client will write that String in JTable. I don't see any reason why your client should do it in multi-threaded way.
And secondly, the moment you open another client, there will be completely new GUI, which means the JTable also would be different one.
So, there's no need to worry about thread-unsafety of swing components.
I hope this helps.
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)