日期:2014-05-20 浏览次数:21350 次
void showSurroundNum(){
//this.setBackground(new Color(225,238,210));
if(surround == -1){
this.setText("pop");
}else if(surround == 0){
for(Mine m:neighborMines){
m.showSurroundNum();//在这里递归的
}
}else {
this.setText((new Integer(surround)).toString());
}
}void showSurroundNum(){
for(Mine m:neighborMines){
//this.setBackground(new Color(225,238,210));
if(surround == -1){
this.setText("pop");
}else if(surround == 0){
m.showSurroundNum();//在这里递归的
}else {
this.setText((new Integer(surround)).toString());
}
}
}