My guess is that you expect BufferedReader.readLine()
to return the line, including its ending EOL character sequence. That's not the case. readLine()
returns the line without its ending line break. So you need to explicitely append a newline to the text area:
textArea.append(line);
textArea.append("\n");