// start of the file, before any class definition import webwisdom.tango.TLAgentApplet; import webwisdom.tango.TLAgent; // end of import fragment //after add(tangoBean1) try { TLAgentApplet tla = new TLAgentApplet(this); tangoBean1.tangoInit(tla); } catch(Throwable e) { System.out.println("Could not find Tango system"); } // end of the fragment // destroy method public void destroy(){ tangoBean1.tangoExit(); } // end of destroy method