Embedding an application inside another applicatio

2019-02-26 03:11发布

I'm sure some of you noticed that if you have Acrobat Reader ( or any other pdf viewer ) , and open a pdf in Firefox , you will see it embedded inside your tab . Is there any way to embed an application in a JFrame ?

标签: java swing embed
2条回答
贪生不怕死
2楼-- · 2019-02-26 03:46

Yes, but that application will need to provide JComponent version which is embeddable.

查看更多
戒情不戒烟
3楼-- · 2019-02-26 03:53

This is a rather tricky. In general, native application such and Adobe Reader does not provide component which can be embedded into swing application. But in Windows there is COM/OLE approach which allows embedding of application together. This article can help you. It points on two project JCOM and JACOB which allows such embedding.

查看更多
登录 后发表回答