getcontentpane().add(north )(getcontentpane())

内容摘要1、container contain=getContentPane();应该是 container contain=this.getContentPane();它的父类中是不是有JFrame,this就是它的对象,表示本身。2、省略了th

1、container contain=getContentPane();应该是 container contain=this.getContentPane();它的父类中是不是有Jframe,this就是它的对象,表示本身。

2、省略了this而已。

本文到此分享完毕,希望对大家有所帮助。

来源:电商信息网  
 
反对 0 举报 0 收藏 0 打赏 0 评论 0
24小时热闻
今日推荐
浙ICP备2022006665号-2