private boolean controlsBoxOnScreen = true;
/** Swap the download/disconnect buttons for a progress bar + cancel button */
public void animateSwap() {
Node n1 = controlsBoxOnScreen ? controlsBox : syncBox;
Node n2 = controlsBoxOnScreen ? syncBox : controlsBox;
TranslateTransition leave = new TranslateTransition(Duration.millis(600), n1);
leave.setByY(80.0);
TranslateTransition arrive = new TranslateTransition(Duration.millis(600), n2);
arrive.setToY(0.0);
SequentialTransition both = new SequentialTransition(leave, arrive);