To reproduce this:
1. Either build or download/unzip the JavaFX 15-ea SDK
2. Run the attached HelloSwingNode test program on the latest build of lanai with the metal pipeline enabled:
$ java --module-path $JAVAFX/javafx-sdk-15/lib --add-modules javafx.swing,javafx.controls -Dsun.java2d.metal=true HelloSwingNode
It will display correctly the first time, but if you click on the Swing button, you will not get the expected changes in the button style. Further, if you resize the window, both the Swing label and Swing button will disappear.
This works correctly when using the default OpenGL pipeline.
1. Either build or download/unzip the JavaFX 15-ea SDK
2. Run the attached HelloSwingNode test program on the latest build of lanai with the metal pipeline enabled:
$ java --module-path $JAVAFX/javafx-sdk-15/lib --add-modules javafx.swing,javafx.controls -Dsun.java2d.metal=true HelloSwingNode
It will display correctly the first time, but if you click on the Swing button, you will not get the expected changes in the button style. Further, if you resize the window, both the Swing label and Swing button will disappear.
This works correctly when using the default OpenGL pipeline.