@Override
	public void update() {		//当食材的数量改变时，窗口的显示有可能改变

		try {
			if (!display.isDisposed()) {
				Runnable runnable = new Runnable() {
					@Override
					public void run() {
						
						try{
						moneyLabel.setText("当前营业额：" + Storage.getInstance().getRevenue());
						customerLabel.setText("当前顾客人数：" + customers);

						for (int i = 0; i < eatingLabels.length; i++) {
							if (!seatsList[i] && !eatingLabels[i].getVisible()) {
								eatingLabels[i].setVisible(true);
							}
							else if (seatsList[i] && eatingLabels[i].getVisible()) {
								eatingLabels[i].setVisible(false);
							}
						}

						for (NameAndLabel nal : nameAndLabels) {
							Label tmp = nal.getLabel();
							tmp.setText(nal.getChineseName() + "：" + storage.getAmount(nal.getName()));
						}
						}
						catch(Exception e){
							System.out.println("多半是由线程引起的");
						}
					}
				};
				display.syncExec(runnable);
			}
		}
		catch (SWTException e) {
			System.out.println("swt 的线程真让人伤心");
		}
	}