/* * ==================================================================== * Create Simple GUI with six buttons. * * Written By : Mark Austin September 1997 * ==================================================================== */ import java.awt.*; public class TestTextArea { public static void main( String args[] ) { // Define window frame. Frame f = new Frame("Simple Text Area Interface"); f.setLayout(new GridLayout(2,1)); // Create text areas and add to the window frame TextArea text1 = new TextArea( "Text Area1", 20, 10 ); TextArea text2 = new TextArea( "Text Area2", 20, 40 ); f.add( text1 ); f.add( text2 ); f.resize(600,400); f.show(); } }