JavaFx StackPane in SceneBuilder, how to make only front pane visible without setting disabling visibility of others?

前端 未结 2 1661
情话喂你
情话喂你 2021-01-24 11:13

Related question: Nodes - Choose the Layer to appear JavaFX2

I\'m using JavaFx 8 with SceneBuilder 2. I have a number of panes as children of a StackPane and I would lik

2条回答
  •  醉梦人生
    2021-01-24 12:11

    You could try setting the visibility to false. To do that, call setVisible(false) on the node you'd like to render invisible in the StackPane.

    See Node::setVisible

提交回复
热议问题