问题
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