【发布时间】:2014-05-01 03:03:36
【问题描述】:
我想编写一个包含这些类的游戏:
--Game extends Application(pass its stage to below classes)
--StartUp extends Application(has stackpane that added to scene and scene added to stage)
--Menu extends Application
--GamePly extends Application
我希望所有这些课程都在舞台上使用。 首先,我启动 startUp 类,几秒钟后我想删除 startUp 堆栈窗格并更改场景(例如从 fxml 文件中读取),但我是 javafx 中的菜鸟。有什么想法吗?
【问题讨论】: