Je veux créer des points de chargement comme celui-ci:JavaFX 2 loading dot dynamique
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...
et ainsi de suite jusqu'à ce que je ferme la Stage
.
Quelle est la meilleure/la plus simple façon de faire cela dans JavaFX? J'ai regardé des animations/préchargeurs dans JavaFX mais cela semble complexe quand j'essaye d'y parvenir.
J'ai essayé de créer une boucle entre ces trois Text
:
Text dot = new Text("Loading.");
Text dotdot = new Text("Loading..");
Text dotdotdot = new Text("Loading...");
mais l'écran reste statique ...
Comment puis-je faire ce travail correctement JavaFX? Merci.
Très utile, merci! –