setToolTipText(cargoText);
    public void display(int trainNumber) {        showingOrder = false;        this.trainNumber = trainNumber;	if (trainNumber >= 0) {	    TrainModel train = (TrainModel) w.get(KEY.TRAINS, trainNumber);	    CargoBundle cargoBundle = (CargoBundle) w.get(KEY.CARGO_BUNDLES,		    train.getCargoBundleNumber());	    //evaluate amount of each cargo on the train	    int cargoAmounts[] = new int [w.size(KEY.CARGO_TYPES)];	    for (int i = 0; i < cargoAmounts.length; i++) {		cargoAmounts[i] = cargoBundle.getAmount(i);	    }        	    //Set up the array of images.	    images = new Image[1 + train.getNumberOfWagons()];	    images[0] =		vl.getTrainImages().getSideOnEngineImage(			train.getEngineType(),			height);	    for (int i = 0; i < train.getNumberOfWagons(); i++) {		WagonType wagonType = (WagonType) w.get(KEY.WAGON_TYPES,			train.getWagon(i));		int wagonCapacity = wagonType.getCapacity();		int x = (cargoAmounts[wagonType.getCargoType()] >			wagonCapacity) ? wagonCapacity :		    cargoAmounts[wagonType.getCargoType()];		images[i + 1] =		    vl.getTrainImages().getSideOnWagonImage(			    train.getWagon(i),			    height, (x * 100) / wagonCapacity);		cargoAmounts[wagonType.getCargoType()] -= x;	    } 	}else {	    images = new Image[0];	}	resetPreferredSize();    }