Remove particular node in border pane in javafx

2019-06-22 17:49发布

问题:

I have a border pane and there are components in its top, left and right side. I want to remove the components of its right side by using id of the borderPane through a mouse event. How do I do that?

回答1:

Just do

borderPane.setRight(null);


标签: java javafx-2