JavaFx – 在根场景(RootScene)和“InnerScenes”之间切换

huangapple 未分类评论51阅读模式
英文:

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.

JavaFx – 在根场景(RootScene)和“InnerScenes”之间切换

huangapple
  • 本文由 发表于 2020年5月5日 20:59:45
  • 转载请务必保留本文链接:https://java.coder-hub.com/61613778.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定