Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用自定义对象在 Java FX 中设计 UI,而不是使用标准标签、文本字段等吗?
或者简而言之,如何将自定义控件导入场景构建器布局屏幕?
您可以从 SceneBuilder 库管理器轻松完成。在这里看到它:
在这里,您可以添加您自己的带有自定义组件的 fxml 文件,或者添加像 JFoenix 这样的第 3 方库。
我希望这个答案有帮助!