Probelm in Java Agent

Hi all, I am writing a agent Its Working well.


import lotus.domino.*;

public class JavaAgent extends AgentBase {

public void NotesMain()

 {

	try

	 {

			Session session = getSession();

			AgentContext agentContext = session.getAgentContext();

			int a;

			int b;

			int c,d;

			a=5;

			b=10;

			c=a+b;

			d=b-1;

			System.out.println("The Addition of A and B is" +" "+ c);

			System.out.println("The Sub of A and B is"+" "+d);

			System.out.println("Java Agent is Working Fine");

			System.out.println("Java Agent Compiled");

	}

 catch(Exception e) 

	{

		e.printStackTrace();

	}

}

}

===================================

Now I want to use Applet in this agent.

How can i implement It Please guide me?