JFrame myFrame = new JFrame("Robin");
Panel leftPanel = new Panel();
Panel centerPanel = new Panel();
JPanel southPanel = new JPanel();
Button bClose = new Button("Przyciśnij mnie!");
JTextArea taPole = new JTextArea();
JTextField tfPole = new JTextField();
JScrollPane pane = new JScrollPane(taPole);
Dimension d1 = new Dimension(500, 30);
Dimension d2 = new Dimension(500, 700);
myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
leftPanel.add(bClose);
centerPanel.add("Center", taPole);
southPanel.add(tfPole);
tfPole.setPreferredSize(d1);
tfPole.setSize(d1);
tfPole.setEditable(true);
tfPole.setEnabled(true);
southPanel.setBackground(Color.red);
taPole.setEditable(false);
taPole.add(pane);
pane.setVisible(true);
taPole.setBackground(Color.white);
taPole.setText("Dlugi tekst");
taPole.setPreferredSize(d2);
taPole.setSize(taPole.getWidth(), 800);
taPole.setPreferredSize(d2);
taPole.setLineWrap(true);
taPole.setWrapStyleWord(true);
taPole.setAutoscrolls(true);
bClose.setActionCommand("Wypisz");
bClose.addActionListener(this);
myFrame.add("West", leftPanel);
myFrame.add("Center", centerPanel);
myFrame.add("South", southPanel);
myFrame.pack();
Pokaz();
Niestety scrolla jak nie było tak nie ma... Może ktoś potrafi pomóc. To tylko fragment kodu, ale ten najistotniejszy...