JavaFX - Concurrency and updating label
问题 I've got problem with these piece of code. I want to make an application, which constatnly displays randomized values in labels as long as the Toggle Button is pressed. That's what I created, it works but window after a few seconds is lagging horrible. What am I doing wrong? Here is code of class, which generate random values: public class ValueMaker{ private StringPropterty x, y, z; private Random generator; private boolean isStarted = false; private int randomizedX(){ return generator