setLayout( new GridLayout(2,1) ); add( area1 = new TextArea() ); add( area2 = new TextArea() ); area1.addTextListener ( new TextSyncAdapter( area2 )); area2.addTextListener ( new TextSyncAdapter( area1 ));