Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091685

Add waitForFirstRepaint feature to FXRobot

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P5 P5
    • None
    • None
    • javafx

      Was a TODO in FXRobot:


          // TODO: need to devise a cross implementation way of doing this
      // public function waitForFirstRepaint(timeout: Integer) : Void {
      // def latch : CountDownLatch = new CountDownLatch(1);
      // FX.deferAction(function(): Void {
      // var tracker = com.sun.javafx.perf.PerformanceTracker.getSceneTracker(target);
      // var f = tracker.onFirstPulse;
      // tracker.onFirstPulse = function():Void {
      // latch.countDown();
      // if (f != null) {
      // tracker.onFirstPulse = f;
      // }
      // }
      // });
      // while (true) {
      // try {
      // latch.await(timeout, java.util.concurrent.TimeUnit.MILLISECONDS);
      // break;
      // } catch (e: java.lang.InterruptedException) {}
      // }
      // }

            kcr Kevin Rushforth
            rbair Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: