i faced this problem one year ago.It would be something like that:
first you have to get the applet context 'getAppletContext()' (which is the current frame).
Then get parent of that context 'getParent()' (which is the browser context).
Then u can access the desired frame by its name. Finally you can access the desired applet located within this frame by