I had just coded a Swing program that starts up a SwingWorker (which runs a Socket Server). I have a JTextArea on the Swing GUI which gets updated with the data received by the Socket Server, using a JTextArea.append(String).
Is it the correct/threadsafe way to update a JTextArea on the Swing GUI? What about using publish/process?