@FXML private ArrayList <TextField> textfieldList; private void clear() { for(Node node : textfieldList) { if(node instanceof TextField) { ((TextField) node).setText(null); } else if(node instanceof ComboBox<?>) { ((ComboBox<?>) node).getSelectionModel().select(-1); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)