    01: import java.awt.*;
    02: import javax.swing.*;
    03:
    04: public class ScrollPaneTest
    05: {
    06:    public static void main(String[] args)
    07:    {
    08:       JFrame frame = new JFrame();
    09:       Container contentPane = frame.getContentPane();
    10:
    11:       JTextArea area = new JTextArea(20, 40); // 20 rows, 40 columns
    12:       JScrollPane scroller = new JScrollPane(area);
    13:       contentPane.add(scroller, BorderLayout.CENTER);
    14:
    15:       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    16:       frame.setSize(200, 200);
    17:       frame.show();
    18:    }
    19: }
    20: