Indent your code and wrap code blocks around it for readability.

1. What results are you expecting? What results have been produced?

2. Yes it is possible to adjust the size of a JTextArea.
...