for (int i = 0; i <= size; i++) { String s = (String)objectInputStream.readObject(); textArea.append(s); }