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.
JFrame我在 Java 编程方面相对较新,我一直在使用 Eclipse 和 WindowBuilder,但我不明白在 Swing Designer 中使用或应用程序窗口有什么区别。谁能解释一下?
JFrame
好吧,两者之间没有太大区别,因为 JFrame 向导的唯一独特之处在于它自愿创建了一个 JFrame 子类。另一方面,具有 JFrame 的 Object 子类会在 Swing Designer 的 Application Window 向导中自动创建。在我看来,JFrame 向导总是更适合使用。