After the show of the panel, the graphic object will be initialized and then you can use it. You had better use a function to check whether it is null, then to something
Another tip, you can put your code into the paint(graphics..) something like it. 你指doubleBuffer吧,为了解决动画频闪的一种方法。
页:
[1]