1 |
add collaboratory functionality to the previous class
-
call send( byte[ ] ) when Return pressed
-
if ( ( evt.target = = text ) && ( evt.id = = Event.ACTION_EVENT ) )
-
send( stringToBytes( text.getText( ) ) );
-
handle receive( byte[ ] b ) when data arrives
-
text.setText( bytesToString( b ) );
|
2 |
embed the applet in an HTML page
-
<applet codebase="." archive="tm.jar,JExamp.class" code="JExamp.class" width=280 height=33 mayscript>
-
</applet>
|
3 |
register the page in a Tango ControlApplication
|