import java.awt.*;
import javax.swing.*;

public class TextBoxDemo extends JFrame {
    public TextBoxDemo() {
        super("Text Box");
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JTextArea comments = new JTextArea(8, 40);
        FlowLayout flo = new FlowLayout();
        setLayout(flo);
        add(comments);
        pack();
        setVisible(true);
    }

    public static void main(String[] arguments) {
        TextBoxDemo tbd = new TextBoxDemo();
    }
}
