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.
我对 Swing in Java 的一个主题有一个小问题。我试图创建一个对话框:
我希望所有的东西都在同一个对话框中。谁能告诉我如何解决这个问题?
您可以将组件添加到 JPanel,然后在对话框中添加面板。
请参阅本教程。