title: JScrollPane doesn't show up
body: <p>I made a program and I want to add a JScrollPane to a JTextArea (but it doesn't show up).
  Here's the code (or at least everything that has to deal with the JTextArea / JScrollPane, the whole code is a lot):</p>
  <pre><code>
      static JPanel contentPane; // This one got initialised in the constructor
      static JTextArea tarMessages;
  
      public void addTextArea{
          tarMessages = new JTextArea();
          tarMessages.setForeground(Color.WHITE);
          tarMessages.setBackground(new Color(0, 0, 0, 0));
          tarMessages.setEditable(false);
          tarMessages.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
          tarMessages.setBounds(600, 124, 200, 192);
          tarMessages.setOpaque(false);
          /*DefaultCaret dlcMessages = (DefaultCaret)tarMessages.getCaret();
          dlcMessages.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);*/
          tarMessages.addMouseListener(new MouseAdapter(){
              @Override
              public void mouseClicked(MouseEvent e) {
                  requestFocus();
              }
          });
          JScrollPane scpMessages = new JScrollPane(tarMessages);
          scpMessages.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
          scpMessages.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
          scpMessages.setPreferredSize(new Dimension(10, 192));
          scpMessages.setEnabled(true);
          contentPane.add(scpMessages);
          contentPane.add(tarMessages);
      }
  </code></pre>
  <p>Thank you for helping. Have nice holidays.</p>