Is there any way, without using TWebBrowser
, to load a java applet in a Delphi form and interact with it?
Theres a page which contains a applet that I want to show inside my Delphi app (in a particular form) and after the user close it (or do any other operation) I want to interact with it (getting some details about what user did).
I know that TWebBrowser
is capable of loading a java applet, but it will not let me interact and get what I need.
Similar thing can be done with a .Net assembly, but I have not seen anything like it using a java applet.
Edit:
As @PA pointed out:
"it will not let me interact" ... well, that's the actual reason for browsers running java applets inside a sandbox
Well .. that was not what a meant. I meant I am not able to get a value from a edit (for example) as I am able to do with oth开发者_开发问答er languages. I know that java runs inside a VM, but .Net runs as well and i am able to interact with .Net using some COM and stuff like that.
I think the only way to use Java Applets in Delphi programs wihtout TWebBrowser is to use ActiveX technology. May be this link from google can help you: http://www.oracle.com/technetwork/java/index-jsp-141438.html
May be you should take a look at Java Native Interface (JNI) technology. For example, you can find its Delphi implementation here.
精彩评论