@Override
	public void update(Observable obs, Object arg) {
		if(carros.contains(obs))
		{
			try
			{
				int[] received= (int[]) arg;
				int state= received[0];
				int codCar= received[1];
				Carro c=(Carro)obs;
				if(state==Carro.MOVING){
					txtCars[0][codCar-1].setText(String.valueOf(c.getPosX()));
					txtCars[1][codCar-1].setText(String.valueOf(c.getPosY()));
				}else if(state==Carro.HARVESTING){
					txtLoad[codCar-1].setText(String.valueOf(c.getCarga()));
				}
			}catch(ClassCastException e){
				System.out.println("Error en el casting de argumento enviado por carros a subpanelCarros");
			}

		}		


	}