Basic HTML version of Foils prepared

Foil 14 Java API - code example II Contd

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


1 public boolean action(Event e,Object o) {
2 if (o instanceof TextField) {
3 String msg=un+" : "+tf.getText();
4 byte[] t=new byte[msg.length()];//create byte table
5 msg.getBytes(0,msg.length(),t,0);//string to byte[]conversion
6 AppEventMessage em=new AppEventMessage(Const.DATA,t);
7 // The above is a new message
8 send(em); //TANGO API call
9 tf.setText("");
10 return true;
11 }
12 else
13 return super.action(e,o);
14 }

in Table To:


© 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