Criando appelt ou jetty

1 resposta
A

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

}

}

1 Resposta

A

Apenas um applet com um unico botão que chame a classe cliente.class

Criado 17 de setembro de 2009
Ultima resposta 17 de set. de 2009
Respostas 1
Participantes 1