Is it possible to embed a SWT Composite into a JavaFX scene?

拟墨画扇 提交于 2019-12-24 15:12:47

问题


I know that JavaFX 2.2 provides FXCanvas for embedding new JavaFX components into existing SWT Composites. Is it possible to do it the other way around?

My motivation for trying this, is that there are currently some components missing in JavaFX. For example a TreeTable. I want to implement my application in JavaFX, use SWT as a fallback for missing components, and migrate those to JavaFX as soon they are ready.


回答1:


no - you can not embedd heavy weight (=SWT) into a lightweight container (=FX) - JavaFX will get a TreeTable in FX8



来源:https://stackoverflow.com/questions/14812360/is-it-possible-to-embed-a-swt-composite-into-a-javafx-scene

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!