Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call an applet's function from another java application?

Status
Not open for further replies.

igowi

Programmer
Sep 18, 2001
45
US
From the html page, I just know the applet's function name.
In the HTML, JavaScript calls the function of the applet.
I want to call the function of the applet from my java program, so I want to get the return value.
How can I do that?
I can do it?
(stupid question?)

 
I think your java application must implement some functions as appletviewer does.
So i suggest you to study appletviewer first.


Maybe it doesnot help you! IPO_z@cmmail.com
Garbage in,Garbage out
 
Hi, what type of Java program are you talking about? and how are you planning to connect your program to the applet in the first place?

These are some questions, which I guess you should decide upon, since whether your program can call your applet methods, depend on them.

Leon
 
In Applet tag, there are param tags.
I am not using a web browser to run the applet.
I am making a Java program which needs to call the applet's one function. The applet needs the parameters value in the param tag, right? How I can give them to the applet?
(I saved the applet on the local machine.)

thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top