我想創造一些負載點是這樣的:的JavaFX 2動態加載點
At 0 second the text on the screen is: Loading.
At 1 second the text on the screen is: Loading..
At 2 second the text on the screen is: Loading...
At 3 second the text on the screen is: Loading.
At 4 second the text on the screen is: Loading..
At 5 second the text on the screen is: Loading...
依此類推,直到我關閉Stage
。
JavaFX中最好的/最簡單的方法是什麼?我一直在研究JavaFX中的動畫/預加載器,但在嘗試實現這一點時似乎很複雜。
我一直在試圖建立之間的循環這三個Text
:
Text dot = new Text("Loading.");
Text dotdot = new Text("Loading..");
Text dotdotdot = new Text("Loading...");
但屏幕保持靜態...
我怎樣才能使這項工作正確的JavaFX?謝謝。
非常有幫助,謝謝! –