将Flash / Flex组件嵌入到Java应用程序中 [英] Embedding Flash / Flex component into Java app
问题描述
已经用EasyJCom完成了。只要你使用了一个标准的Java窗口库(Swing,awt)就可以了。您可以在这里看到一个例子(来自EZJCom网站): http://www.ezjcom.com/ FlashTest.java.txt
EasyJCom的负责人也是非常敏感的,尽管我们没有使用他们的产品(交换平台) 'd推荐他们。
我没有使用过JFlashPlayer,但看了看文档,似乎也足够了。我认为他们的许可证要求你混淆你的代码。我认为这有点奇怪,但也许我误解了许可证。
如果您不想使用Com,它会变得更加复杂如果您需要嵌入另一种类型的窗口。
如果您需要嵌入Flash跨平台,您可能会卡住Mozilla插件的自己的Jini库。在这一点上...也许这是值得的只是切换平台,如果你不是太远了;)
I'm working on some Flex spike in my company. We are basically evaluating different scenarios etc. What solution would you recommend for embedding Flex components into Java app? Flex <-> Java communication is not (yet...) an issue, just embedding swf into JFrame.
I've done it with EasyJCom. It's pretty straight forward as long as you're using one of the standard Java windowing libraries (Swing, awt). You can see an example (From the EZJCom site) here: http://www.ezjcom.com/FlashTest.java.txt
The people responsible for EasyJCom are also very responsive, and even though we ended up not using their product (Switching platforms), I'd recommend them.
I haven't used JFlashPlayer, but did take a look at the docs, it seems to be adequate as well. I think their license requires you to obfuscate your code. I thought it was a little odd, but maybe I mis-understood the license.
It gets quite a bit more complicated if you don't want to use Com, or if you need to embed in another type of window.
If you need to embed flash cross platform, you may be stuck rolling your own Jini library for the Mozilla plugin. At that point... Maybe it's worth just switching platforms if you aren't too far in. ;)
这篇关于将Flash / Flex组件嵌入到Java应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!