import MyWindowListener;??
包含到classpath里了没
另外,JFrame基类中不包含paint(Graphics)方法,你可以用this.getContentPane.getGraphics()方法来获得Graphics对象,然后作图
包含到classpath里了没
另外,JFrame基类中不包含paint(Graphics)方法,你可以用this.getContentPane.getGraphics()方法来获得Graphics对象,然后作图
函数第一行加上
super().paint(g);