public boolean action(Event e,Object o) { |
if (o instanceof TextField) { |
String msg=un+" : "+tf.getText(); |
byte[] t=new byte[msg.length()];//create byte table |
msg.getBytes(0,msg.length(),t,0);//string to byte[]conversion |
AppEventMessage em=new AppEventMessage(Const.DATA,t); |
// The above is a new message |
send(em); //TANGO API call |
tf.setText(""); |
return true; |
} |
else |
return super.action(e,o); |
} |