Basic HTML version of Foils prepared

Foil 12 Java API - code example II

From General Tango API Java JavaScript and C Tango Tutorial San Diego MRA -- June 26 27 98 Datemod;June 26 98. by TangoInteractive Team


import messages.*; //TANGO Packages
import interfaces.AppletBase;
import consts.*;
Public class Chat extends AppletBase{//TANGO base class
public void init() {
setLayout(new BorderLayout()); //GUI setup
add("Center",ta=new TextArea());
add("South",tf=new TextField());
register(); //TANGO API call
byte[] t=new byte[1];
t[0] = CAConsts.USERNAME; //creation of TANGO control message
AppEventMessage em=new AppEventMessage
(Const.CONTROL,t);
send(em); //TANGO API call
}



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998