How can I implement the functionality of awt.CardLayout in my javaFX 2.0 application?

前端 未结 3 490
鱼传尺愫
鱼传尺愫 2020-12-06 10:24

In my javaFX 2.0 app, I need to replace a component which is used awt.CardLayout. Cardlayout has a functionality as a stack which displays the top component in stack. And al

3条回答
  •  攒了一身酷
    2020-12-06 11:04

    Another option is to use a StackPane and set the visibility of all but the curent Pane to false. Not ideal, but another way of thinking about the problem

提交回复
热议问题