Dear All,
Whenever i click on the applet menu item, a new window is opening each time.
i.e. the menu
Help
-About
When i clcik on the "About" menu an HTML file is opening. Ok. But if i click again on the menu-"About" another help window will open. i.e, 100 new windows for 100 clicks
I need only Only one window, and if the window is already opend it should popup for the next click on the menu item.
the code used.
where i have to modify
private URL helpURL=null;
public void showHelp(){
AppletContext f =this.getAppletContext() ;
String codebase=this.getCodeBase().toString();
try{
helpURL=new URL(codebase+"//help//dummy.htm"
f.showDocument(helpURL,"footer1"
}
catch(Exception e){
}
}
Please get me a solution in java
Regards
Bharat
Whenever i click on the applet menu item, a new window is opening each time.
i.e. the menu
Help
-About
When i clcik on the "About" menu an HTML file is opening. Ok. But if i click again on the menu-"About" another help window will open. i.e, 100 new windows for 100 clicks
I need only Only one window, and if the window is already opend it should popup for the next click on the menu item.
the code used.
where i have to modify
private URL helpURL=null;
public void showHelp(){
AppletContext f =this.getAppletContext() ;
String codebase=this.getCodeBase().toString();
try{
helpURL=new URL(codebase+"//help//dummy.htm"
f.showDocument(helpURL,"footer1"
}
catch(Exception e){
}
}
Please get me a solution in java
Regards
Bharat