title: Java GUI JScrollPane hiding text
body: <p>Currently I am trying to get a <code>JScrollPane</code> to work with a GUI I am creating. I currently have a textarea called <code>consoleTextArea</code> and I want to be able to scroll through it. Currently my code is:</p>
  
  <pre><code>consoleTextArea = new JTextArea();
  consoleTextArea.setBounds(10, 11, 546, 459);
  
  JScrollPane scroller = new JScrollPane(consoleTextArea);
  scroller.setBounds(0, 451, 551, -451);
  scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
  panel.add(scroller);
  </code></pre>
  
  <p>If I use <code>panel.add(scroller)</code>, I don't even see the textArea.<br>
  If I use <code>panel.add(consoleTextArea)</code>, I see the text area but it cannot scroll.</p>
  
  <p>What am I doing wrong here?</p>