英文:
JavaFx - Switch between "InnerScenes" into a RootScene
问题
我想知道在JavaFx中是否可以为Stage创建一个RootScene,然后在一个Pane(具有其自己的fx:id)中更改(例如)不同的“InnerScenes”,以允许我为所有在切换之间保持不变的组件拥有一个RootController,并为InnerScenes拥有特定的组件和控制器。
PS:我创建了一张图片,试图更好地解释我的意思。
英文:
I was wondering if in JavaFx it was possible to create a RootScene for the Stage and then change (for example) in a Pane (with its own fx:id) different "InnerScenes", so as to allow me to have a RootController for all those components that remain the same between the switches and specific components and controller for the InnerScenes.
PS: I created an image to try to explain a little better what I mean.
专注分享java语言的经验与见解,让所有开发者获益!
评论