Veronica,
you can have the applet easily talk to the container page, and vice versa.
In order to do that, you need first to include the following library into your applet:
import netscape.javascript.*;
this library is available in your default jre
it allows you to talk to use javascript to talk to your html container page
next, you will need to add this code:
try
{
JSObject win = (JSObject) JSObject.getWindow(this);
}
catch (Exception e)
{
System.out.println("an error occured");
}
this will allow you to use the win object to call any javascript code to the container page.
and then call the win.eval function with the javascript being the parameter.
For example, If you need to access some tag in your html page, inside the win.eval call, you can use:
"document.getElementById(\"password\").disabled=false" inside the win.eval function (could not type the whole statement because javaranch assumed it was a hack attempt
)
this will set a field called password to enabled
Best,
Mohammad