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 |
} |