title: How to disable button for 3 seconds in java
body: <pre><code>down = new Button ("Down");
       down.setOnAction ( e -&gt; {
  
           TranslateTransition transition = new TranslateTransition();
           transition.setDuration(Duration.millis(2500));
           transition.setNode(circledd);
  
              transition.setByX(50); //horizontaliai
              transition.setByY(0);  //Vertikaliai
              transition.setAutoReverse(false);
              transition.play();
  
       });
  </code></pre>
  
  <p>I wish that:
  Once I click "down" button, picture moves to another position.
  While picture is moving, "down' button is disabled (for 3 seconds).
  After that, "down" button enables itself (without needing user to do other action)</p>