Witam.
Problem taki jak w temacie... JTextArea nie wyświetla się w oknie po dodaniu do JScrollPane. Robię wszystko tak jak w podręczniku i nic. Czy to może być spowodowane tym że jest ono umieszczone w tym samym oknie po którym się rysuje?
final JTextArea textArea = new JTextArea();
textArea.setBounds(1100, 38, -1052, 393);
textArea.setBackground(Color.LIGHT_GRAY);
textArea.setFont(new Font("Tahoma", Font.BOLD, 20));
JScrollPane scrollPane = new JScrollPane(textArea);
scrollPane.setBounds(1100, 38, -1052, 393);
getContentPane().add(scrollPane);