title: Stop JTextArea from expanding
body: <p>I'm trying to read information off of a data file and process it into a <code>JTextArea</code> for an about file for a term project that I'm making. The problem is that when I do <code>scanner.nextLine()</code> it's expanding the text area to fit the text and what I wanted was it to keep the size of the text area the same and if it runs out of space on the current line to start on the</p>
  
  <pre><code>    if(event.getSource() == forward)
      {
          text.setText(s.nextLine());
      }
  </code></pre>
  
  <p>The text area is setup like this:</p>
  
  <pre><code>     text = new JTextArea(11, 30); 
  </code></pre>
  
  <p>Basically what I want to know is if there's a method that text area offers (I looked) that relocates space to the next line if the current is full. I can most likely just edit the data file if there isn't a way to do it in the text area.</p>