Click here to Skip to main content
15,503,367 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI, I have created an application in netbeans , now I want to open one applet from another . But I am getting error in line:

getAppletContext().showDocument()

my code is :

Java
try
{
    AppletContext a = getAppletContext();
    URL u = new URL("surbhi1.html");
    a.showDocument(u,"_self");
}
catch (Exception e)
{
    System.out.println(e.getMessage());
}


Please any one have any option for this then please tell me.
Posted
Updated 1-Aug-11 5:42am
v3
Comments
Nagy Vilmos 1-Aug-11 10:42am    
Added proper tags.

1 solution

 
Share this answer
 
Comments
Member 7907192 7-Aug-11 14:25pm    
it worked , but can we do it without stub ???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900