Successfully achieved applet communication in seperate thread