g.setColor(255, 255, 255);
g.fillRect(0, 0, mainWidth, mainHeight);
if(!COMMAND_ADD_FLAG){
//添加响应命令及监听器
this.addCommand(pauseCommand);
this.addCommand(exitCommand);
this.setCommandListener(this);
COMMAND_ADD_FLAG = true;
}
if(fishCollectionVector != null){
fishCollectionVector = null;
fishCollectionVector = new Vector();
}
if(this.layerManager != null){
this.layerManager = null;
this.layerManager = new LayerManager();
if(userViewWindow){
this.layerManager.setViewWindow(xViewWindow, yViewWindow, wViewWindow, hViewWindow);
}
}
if(mySub != null){