How to include java applets in flash

Respected sir,
I am new to flash (3 months).And i liked this tool a lot.Sir recently I had been in a problem when i tried to include a java applet embedded in an html page inside flash.Through the loadfile method I was able to include the html page but flash dosen’t recognize the applet tag so the applet is not loaded.When i used the get url method on a button I was able to open the applet but on a different window(ie).Can this be done please sort me out as I am engeged in a project that requires java applets inside flash swf files.