Alfonso Sanz wrote:I expect for the sound todo.be played twice because player.play() is called two times.
Knute Snortum wrote:Instead of
what about Thread.sleep(1000); // one second
That may not be the best way of getting a delay in JavaFX, though.
Don't touch me. And dont' touch this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton