I try to put Scroll in the following way:
private JPanel crearPanelFijo() {
listado = new JTextArea(7,20);
listado.setEditable(false);
sp = new JScrollPane(listado);
JPanel jPanelText = new JPanel();
jPanelText.add(new JLabel("Lista:"));
jPanelText.add(listado);
jPanelText.add(sp);
return jPanelText;
}
But I do not get the Scroll, just the normal JTextArea.
I would like to know what happened.
Thanks