I read many other questions in here, all suggest the same, still it doesn't work for me, simply nothing happens.

My code is this:

```
final JTextArea ta = new JTextArea();
ta.setPreferredSize(new Dimension(310, 325));
ta.setMinimumSize(new Dimension(310, 325));
ta.setEditable(false);
ta.setFont(new Font("Tahoma", Font.PLAIN, 11));

JScrollPane sp = new JScrollPane(ta);
contentPane.add(sp);

```

contentPane is set at beggining of program

```
contentPane = new JPanel();
contentPane.setBackground(Color.GRAY);
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);

```

Thanks in advance :)

EDIT: I made some adjustments, now scrollpane appears, but when it does textArea disappears for some reason.. here's the whole program in pastebin, just search for scrollPane or textArea.

<http://pastebin.com/4hS85zZt>

THANKS!!