tools/SharedTestUtilsOpen/src/test/javaclient/shared/CombinedTestChooserPresenter3D.java

Print this page

        

@@ -26,10 +26,11 @@
 
 import javafx.scene.Scene;
 import javafx.scene.layout.Pane;
 import javafx.scene.Group;
 import javafx.stage.Stage;
+import com.sun.javafx.stage.WindowHelper;
 
 /**
  *
  * @author shubov
  */

@@ -65,10 +66,11 @@
         fillScene();
         stage.setScene(getScene());
         stage.show();
         stage.toFront();
         setNodeForScreenshot(null);
-        stage.setFocused(true);
+        //stage.setFocused(true);
+        WindowHelper.setFocused(stage, true);
     }
 
 }