title: problems with Java GUI repainting JPanel JFrame
body: <p>The plan is to have the program replace the lyrics on the screen with different lyrics when another song is searched.</p>
  
  <pre><code>}public void lyricPrinter(){
      if(scroll != null){
      scroll.removeAll(); //--&gt; temporary test
      System.out.println("removed scroll");
      scroll.repaint();
      }
  
      JTextArea textarea = new JTextArea(lyrics);
      textarea.setBackground(Color.LIGHT_GRAY);
      textarea.setEditable(false);
  
  
      scroll = new JScrollPane (textarea,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  
      GUI.frame.remove(scroll);
      GUI.frame.add(scroll);
      GUI.frame.setVisible(true);
  
  
  
  
  }
  </code></pre>
  
  <p>I thought using removeall() would do the trick but this ends up happening..</p>
  
  <p>printing lyrics for the first time..
  <img src="https://i.imgur.com/O435Sck.png" alt="printing lyrics for the first time..">
  After I change the lyrics and try to replace the previous lyrics..
  <img src="https://i.imgur.com/7RwLcJG.png" alt="After I change the lyrics and try to replace the previous lyrics.."></p>