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.
我有一个扩展 JPanel 的类,现在我必须将此类转换为 JFrame,以便通过使用此类对象的 setVisible 方法,我可以调用此 Frame。我怎样才能做到这一点 ?
保留这个类,因为它是“扩展 JPanel”并编写一个从 JFrame 扩展的新类,并添加将 JPanel 扩展到此框架的类