阅读背景:

使用mvc设计模式调用repaint()和paintComponent()方法时出现问题

来源:互联网 

I'm creating a small game, you click buttons (up, down, left and right) to control a cat (represented by a rectangle) to chase a mouse (represented by another rectangle). Lame I know... anyway I'm using the mvc design pattern and I am having problems calling the repaint method from button listeners in the controller on the panel where the two rectangles are to be 'painted'. They paint successfully the first time but not any further time.I'm creating a small game, you click buttons (u




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: