init()
public void init() {
String s = "This is a demo string";
t1 = new TextArea( s, 5, 20, TextArea.SCROLLBARS_NONE );
t1.addTextListener( this );
add( t1 );
copy = new Button( "Copy >>>" );
copy.addActionListener( this );
add( copy );
t2 = new TextArea( 5, 20 );
t2.setEditable( false );
add( t2 );
}
}
Previous slide
Next slide
Back to first slide
View graphic version