title: ScrollPane in the JTextArea
body: <p>This is part of GUI project I'm working with and I'm trying to make <code>JScrollPane</code> to appear in the <code>JTextArea</code> when the text is longer than the size of the <code>JTextArea</code>. It looks fine to me but the <code>JScrollPane</code> still doesn't show up.</p>
  
  <pre><code>    JTextArea textArea = new JTextArea();
      textArea.setLineWrap(true);
      textArea.setWrapStyleWord(true);
      textArea.setBounds(77, 27, 561, 146);
      JScrollPane scrollPane = new JScrollPane(textArea);
      scrollPane.setPreferredSize(new Dimension(380, 100));
      scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
      JPanel panel= new JPanel()
      panel.add(textArea);
  </code></pre>
  
  <p>Can anyone verify this peace of code? </p>