public void haveFinish(int column){
Point point = this.getLastCardLocation(column);
PKCard card = (PKCard) this.table.get(point);
do{
this.table.remove(point);
card.moveto(new Point(20 + finish * 10, 580));
pane.setComponentZOrder(card, 1);
this.table.put(card.getLocation(), card);
card.setCanMove(false);
point = this.getLastCardLocation(column);
if (point == null)
card = null;
else
card = (PKCard) this.table.get(point);
}
while (card != null && card.isCardCanMove());
finish++;
是否存在更新操作,dowhile循环一次次遍历查看,删除旧的,获取新的