1、container contain=getContentPane();应该是 container contain=this.getContentPane();它的父类中是不是有Jframe,this就是它的对象,表示本身。
2、省略了this而已。
本文到此分享完毕,希望对大家有所帮助。
1、container contain=getContentPane();应该是 container contain=this.getContentPane();它的父类中是不是有Jframe,this就是它的对象,表示本身。
2、省略了this而已。
本文到此分享完毕,希望对大家有所帮助。