src/main/java/org/openjfx/NotificationController.java
private void safeUpdateProgress(double progress, String prefix) {
        Platform.runLater(() -> {
            double displayProgress = progress < 0.03 ? 0.03 : progress;
            this.setProgress(displayProgress, prefix);
        });
    }
/**
     * Thread safe for UI update
     * @param progress
     * @param prefix
     */
Thread safe for UI update
@param progress
@param prefix
Thread safe for UI update @param progress @param prefix
private void safeUpdateProgress(double progress, String prefix) {
        Platform.runLater(() -> {
            double displayProgress = progress < 0.03 ? 0.03 : progress;
            this.setProgress(displayProgress, prefix);
        });
    }
private void safeUpdateProgress ( double progress , String prefix ) { Platform . runLater ( ( ) -> { double displayProgress = progress < 0.03 ? 0.03 : progress ; this . setProgress ( displayProgress , prefix ) ; } ) ; }
Thread safe for UI update
 @param progress
 @param prefix
Thread safe for UI update @param progress @param prefix