I am creating a 2d canvas and want to integrate several “views”, and I need to have a compatability ...
n
I am creating a 2d canvas and want to integrate several “views”, and I need to have a compatability with JavaFX. However it seems that jfx panels do not respect composables’ parameters, such as zoom or zIndex. Offset and size are respected though. In the example below I have a WebView as example but I assume other JPanels will behave the same
a
I think that’s by design. Swing components are placed and sized correctly, but that’s about it.
Whatever goes on inside them is pure Swing.
n
So the zIndex parameter of Modifier has nothing todo with Swing’s Components zOrder?
k
It can also be that the WebView is a heavyweight component which might need calling setMixingCutoutShape on other lightweight Swing components.