创建JFrame并处理它,哪种方法最好?
JFrame
class MyClass extends JFrame
基本上,只有在需要重载JFrame中的任何方法时才应该扩展它。
话虽如此,无论哪种方式,都不应该有任何明显的性能影响。