简体   繁体   English

我可以将Swing或SWT组件嵌入到JavaFx2.0中吗?

[英]Can I embed a Swing or SWT component into JavaFx2.0?

everyone! 大家! I am in trouble again. 我又遇到了麻烦。 When I am working with the IP Camera, I met a big problem, that is, when I use JavaFx Component (ImageView) to show the image tranfered from IP Camera, the picture showing in the imageview is not fluent and smooth, it becomes blank frequently, no matter how I try. 当我使用IP摄像机时,我遇到了一个大问题,就是当我使用JavaFx Component(ImageView)显示从IP Camera传输的图像时,在imageview中显示的图片不流畅和流畅,它变成空白经常,无论我如何尝试。 But before I use Javafx 2.0 to rebuild the project, I have finished IP Camera part with Swing and SWT Compont, so I was wondering whether I can embed a Swing or SWT compont into JavaFx2.0, it is much better if you know how to show pictures from IP Camera using Javafx2.0.Thanks all.Hope you can help me. 但在我使用Javafx 2.0重建项目之前,我已经使用Swing和SWT Compont完成了IP Camera部分,所以我想知道我是否可以将Swing或SWT compont嵌入到JavaFx2.0中,如果你知道如何更好使用Javafx2.0显示来自IP Camera的图片。感谢所有。希望你可以帮助我。

No, the new JavaFx 2 is incompatible with Swing/AWT and there's no official support to embed a Swing component inside . 不,新的JavaFx 2与Swing / AWT不兼容,并且没有官方支持将Swing组件嵌入其中。

However seems that the ThingsFX team is working on project that is a kind of hack to embed a Swing component into an FX Scene . 然而,似乎ThingsFX团队正在开发项目 ,这是一种将Swing组件嵌入FX场景的黑客行为。

For the moment nothing although ... 目前没什么,虽然......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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