super("TextEntryBox v1.0");
setSize(200, 300);
setLocation(200, 200);
final JTextArea area = new JTextArea( );
area.setFont(new Font("Serif", Font.BOLD, 18));
area.setText("Howdy!\n");
final JTextField field = new JTextField( );
Container content = getContentPane( );
content.add(new JScrollPane(area), BorderLayout.CENTER);
content.add(field, BorderLayout.SOUTH);
setVisible(true);
field.requestFocus( );
field.addActionListener(new ActionListener( ) {
public void actionPerformed(ActionEvent ae) {
area.append(field.getText( ) + '\n");
field.setText("");
}
});