FileDocCategorySizeDatePackage
TextEntryBox.javaAPI DocExample542Wed Feb 19 01:26:30 GMT 1997None

TextEntryBox

public class TextEntryBox extends Applet implements ActionListener

Fields Summary
TextArea
area
TextField
field
Constructors Summary
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

		area.append( field.getText() + '\n" );
		field.setText("");
	
public voidinit()

		setLayout( new BorderLayout() );
		add( "Center", area = new TextArea() );
		area.setFont( new Font("TimesRoman",Font.BOLD,18) );
		area.setText("Howdy!\n");

		add( "South", field = new TextField() );
		field.addActionListener ( this );