How do I close the AnchorPane child without closing the parent AnchorPane?
My code looks like this:
@FXML
private Button btnFacharAnchorPane;
@FXML
public void fachar() {
btnFecharAnchorPane.getScene().getWindow().hide();
}
When I click the button it close the whole program, what I want is that it closes only the inner AnchorPane which is the child