button.setOnAction(e -> { button.getGraphic().setVisible(true); try { Thread.sleep(2000); } catch (InterruptedExce