简体   繁体   中英

Java applet in a Delphi form

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 other 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM