title: JTextArea Doesn't Show Up on JPanel inside JTabbedPane
body: <p>I have a JTextArea that sits inside a JScrollPane which in turn sits inside a JPanel and that in turn sits inside a Tab of a JTabbedPane.</p>
  
  <p>I know that text gets added to my JTextArea, but when I move between the tabs, the JTextArea is not visible. To read the text, I have to select the text inside the JTextArea, and that then brings up the White colour of the background of the JTextArea. If I don't select, I don't see anything.</p>
  
  <p>I've tried the usual <code>revalidate();</code> and <code>repaint()</code> but they're not working for me. Here is some of the code in question:</p>
  
  <pre><code>public void writeLogEntry(Alarm alarm)
  {
  
  
      String value = "Blah Blah Blah";
      logTextArea.append(value);
      SwingUtilities.getWindowAncestor(contentPane).revalidate();
      repaint();
      revalidate();
      setVisible(true);
  }
  </code></pre>
  
  <p>And here is the code for the elements related to the JTextArea:</p>
  
  <pre><code>JPanel logPnl = new JPanel();
  logPnl.setLayout(new BorderLayout(10, 10));
  JScrollPane logScrollPane = new JScrollPane();
  logScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
  logTextArea = new JTextArea("blah blah");
  logTextArea.setBounds(10, 10, 550, 300);
  logTextArea.setEditable(false);
  logScrollPane.add(logTextArea);
  logPnl.add(logScrollPane);
  
  contentTabs.addTab("Alarms Log", null, logPnl, "View Log");
  contentPane.add(contentTabs);
  </code></pre>
  
  <p>What am I doing wrong?</p>