eu possuo uma classe chamada cliente e gostaria de saber como faço um applet basico para chamar essa classe
[code]
import OAJUtil.*;
public class Client implements JatConstants
{
JatMessage pageobj;
public void buildClient()
{
try
{
JatSystem EttOAJSystem = JatSystem.createJatSystem("3.00");
MinJatMsgHandler firstMsgHandler = new MinJatMsgHandler();
MinJatMsgConfHandler firstMsgConfHandler = new MinJatMsgConfHandler();
MinJatMsgConfRespHandler firstMsgConfRespHandler = new MinJatMsgConfRespHandler();
//MinJatAlarmHandler firstAlarmHandler = new MinJatAlarmHandler();
EttOAJSystem.addService( firstMsgConfHandler);
EttOAJSystem.addService( firstMsgConfRespHandler);
EttOAJSystem.addService( firstMsgHandler);
//EttOAJSystem.addService( firstAlarmHandler);
EttOAJSystem.execute();
// USER_RESPONSE_ACCEPT_REJECT é o modelo de menmsagem com aceito e rejeito
pageobj = new JatMessage(USER_RESPONSE_NONE);
//numero a ser enviado
pageobj.setCallNumber(“4407”);
//Prioridade
pageobj.setPriority(5);
//Titulo
pageobj.setSubject(“Adriel teste”);
//Mensagem
pageobj.setBody( “Adriel” );
//Enviando
pageobj.send();
//fechando
}
catch( Exception e)
{
}
}
}