如何在 JavaFx 2.0 中向舞台添加其他场景

发布于 2024-12-23 00:03:25 字数 84 浏览 1 评论 0原文

我有一个网络应用程序,用户在主页中登录该网站,登录后我想显示不同的“页面”或场景。如何在不创建额外窗口的情况下更改舞台中当前显示的场景?非常感谢所有帮助。

I have a web application where users log on to the site in the main page, once they are logged in I would like to display a different "page" or scene. How can I change the scene that is being displayed currently in the stage without creating additional windows? All help is greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

高跟鞋的旋律 2024-12-30 00:03:25
Scene page2 = new Scene(new Group(new Text(25,25,"Page 2!")));
stage.setScene(page2);
Scene page2 = new Scene(new Group(new Text(25,25,"Page 2!")));
stage.setScene(page2);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文