Steps to see the issue :
1) Make sure that the Automatic graphics swtiching is checked under "System Preferences -> Energy Saver". This is the default option.
2) Launch SwingSet2 with -Dsun.java2d.metal=true
3) Launch SwingSet2 with -Dsun.java2d.metal=false
On step 3, UI text of SwingSet2 launched in step 2 is lost.
See the attached screenshot - on the left side, there is SwingSet2 with metal pipeline showing the issue. On the right side, there is SwingSet2 with OpenGL pipeline.
Tested on MacBook Pro 16" with discrete graphics card (macOS 10.15.6)
1) Make sure that the Automatic graphics swtiching is checked under "System Preferences -> Energy Saver". This is the default option.
2) Launch SwingSet2 with -Dsun.java2d.metal=true
3) Launch SwingSet2 with -Dsun.java2d.metal=false
On step 3, UI text of SwingSet2 launched in step 2 is lost.
See the attached screenshot - on the left side, there is SwingSet2 with metal pipeline showing the issue. On the right side, there is SwingSet2 with OpenGL pipeline.
Tested on MacBook Pro 16" with discrete graphics card (macOS 10.15.6)