我想创造一些负载点是这样的:的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?谢谢。
非常有帮助,谢谢! –