I was try several opinion but neither of them it seams to work.
This method returns JTextArea
private static JTextArea getJArea() {
if (jArea == null) {
jArea = new JTextArea();
jArea.setBounds(new Rectangle(16, 153, 468, 139));
jArea.setVisible(true);
jArea.setLineWrap(true);
jArea.setWrapStyleWord(true);
jArea.setEditable(false);
jsp.getViewport().add(jArea);
}
return jArea;
}
and i JDesktopPane i add this area with this code snippet
jDesktopPane.add(getJArea(), null);
And this not work, I was try to create a JScrollPane and assign JTextArea to him and add that to the JDesktopPane, but that also doesn't work.