最新のJDK8Early-Accessを使用していますか?もしそうなら、私が提出したこのバグレポートを参照してください:http://javafx-jira.kenai.com/browse/RT-29018
基本的に、早期アクセスビルドの最近のリリースでは、スキンとcssにいくつかの変更が加えられました。これにより、親ノードよりもダーティであるが両方とも同じパルスで再ペイントする必要がある子ノードが、親のダーティレベルが子ノードのダーティレベルを上書きするという隠れたバグが明らかになりました。
これにより、進行状況が表示されなくなります。実際、タスクから呼び出されるとprogressBar
すぐに、私にとっては完全に見えなくなりました。updateProgress
彼らにはパッチがあります、これがいつ行われるかはわかりません。
回避策は、パッチを待っている間にjdk7を使用するか、私が行ったことを実行して、古いcssからcssスタイルシートにこれを適用することです。
/*hack to get progress bar working. From: JDK7u17 jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.css */
/*******************************************************************************
* *
* ProgressBar *
* *
******************************************************************************/
.progress-bar {
-fx-skin: "com.sun.javafx.scene.control.skin.ProgressBarSkin";
-fx-background-color:
-fx-box-border,
linear-gradient(to bottom, derive(-fx-color,30%) 5%, derive(-fx-color,-17%));
-fx-background-insets: 0, 1;
-fx-indeterminate-bar-length: 60;
-fx-indeterminate-bar-escape: true;
-fx-indeterminate-bar-flip: true;
-fx-indeterminate-bar-animation-time: 2;
-fx-focus-traversable: true;
}
.progress-bar .bar {
-fx-background-color:
-fx-box-border,
linear-gradient(to bottom, derive(-fx-accent,95%), derive(-fx-accent,10%)),
linear-gradient(to bottom, derive(-fx-accent,38%), -fx-accent);
-fx-background-insets: 0, 1, 2;
-fx-padding: 0.416667em; /* 5 */
}
.progress-bar:indeterminate .bar {
-fx-background-color: linear-gradient(to left, transparent, -fx-accent);
}
.progress-bar .track {
-fx-background-color:
-fx-box-border,
linear-gradient(to bottom, derive(-fx-color,-15%), derive(-fx-color,2.2%) 20%, derive(-fx-color,60%));
-fx-background-insets: 0, 1;
}
.progress-bar:disabled {
-fx-opacity: 1.0
}