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,但我不明白如何将 JPanel 转换为 Pane。
我使用 Netbeans 1.4 和 JavaFX 场景构建器 1.1。
Java 场景生成器只生成一个窗格而不是一个 JPanel。
我尝试使用 Swing Node,但我一点也不明白。
预先感谢您的帮助。
如果你想添加一个 Swing 组件,是的,你必须通过代码来完成,而不是使用 Scene Builder。
你应该看看这里它是 SwingNode 的 API 文档并且有一个你可以使用的很好的例子。