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

Print this page

        

@@ -37,10 +37,11 @@
 import javafx.scene.Node;
 import javafx.scene.control.Button;
 import javafx.scene.layout.VBox;
 import javafx.scene.paint.Color;
 import org.eclipse.swt.widgets.Shell;
+import com.sun.javafx.stage.WindowHelper;
 
 /**
  *
  * @author shubov
  */

@@ -181,11 +182,12 @@
         stage.setTitle(title);
         fillScene();
         stage.setScene(scene);
         stage.show();
         stage.toFront();
-        stage.setFocused(true);
+        //stage.setFocused(true);
+        WindowHelper.setFocused(stage, true);
     }
 
     public void show(final Object frame, final Object panel) {
         SwingAWTUtils.setJFrameTitle(frame, title);