JDK-8091685 : Add waitForFirstRepaint feature to FXRobot
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: other
  • Priority: P5
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2012-02-22
  • Updated: 2017-05-18
  • Resolved: 2017-05-18
Related Reports
Relates :  
Description
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) {}
//        }
//    }

Comments
FXRobot is obsolete and was removed by JDK-8156809
18-05-2017