@FXML void setLottoDate(ActionEvent event) { TextField tmp = (TextField) event.getSource(); lotto.setDate(tmp.getText()); enablePanes(); }