是不是getContentPane()只能在构造方法中用,如何解决
getContentPane()不是JFrame里的方法么,还可以改么?怎么改?
getContentPane() 返回的类型是Container, 你能把你的代码发出来看一下么?