@Override
	public void initialize(URL arg0, ResourceBundle arg1) {
		firstNameTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_FIRSTNAME"));
		lastNameTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_LASTNAME"));
		birthdayTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_BIRTHDAY"));
		positionTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_POSITION"));
		numberTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_NUMBER"));
		nationalityTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_NATION"));
		heightTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_HEIGHT"));
		weightTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_WEIGHT"));
		characterTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_CHARACTER"));
		energyTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_ENERGY"));
		formTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_FORM"));
		shootingTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_SHOOTING"));
		staminaTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_STAMINA"));
		skillTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_SKILL"));
		passingTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_PASSING"));
		powerTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_POWER"));
		offenseTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_OFFENSE"));
		defenseTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_DEFENSE"));
		totalStrengthTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_TOTAL_STRENGTH"));
		wageTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_WAGE"));
		contractTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_CONTRACT"));
		feeTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_FEE"));
		injuryTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_INJURY"));
		hurtTxtLbl.setText(Util.getModelResourceBundle().getString("L_LBL_HURT"));
		roundsLeft1Lbl.setText(Util.getModelResourceBundle().getString("L_LBL_ROUNDSLEFT"));
		roundsLeft2Lbl.setText(Util.getModelResourceBundle().getString("L_LBL_ROUNDSLEFT"));
		
		Image image;
		try {
			String url = "file:" + HockmanMain.currPlayer.getPicPath();
			image = new Image(url);
			if (image.isError()) {
				url = PlayerDetails.class.getResource(L_PLAYERPICPATH)
						.toString();
				image = new Image(url);
			}
		} catch (IllegalArgumentException ex) {
			String url = PlayerDetails.class.getResource(L_PLAYERPICPATH)
					.toString();
			image = new Image(url);
		}
		playerPic.setImage(image);
		firstNameLbl.setText(HockmanMain.currPlayer.getFirstName());
		lastNameLbl.setText(HockmanMain.currPlayer.getLastName());
		birthdayLbl.setText(HockmanMain.currPlayer.getBirthday().toString());
		positionLbl.setText(HockmanMain.currPlayer.getPosition().posName());
		numberLbl.setText(Integer.toString(HockmanMain.currPlayer.getNumber()));
		nationalityLbl.setText(HockmanMain.currPlayer.getNation().getName());
		heightLbl.setText(Integer.toString(HockmanMain.currPlayer.getHeight()));
		weightLbl.setText(Integer.toString(HockmanMain.currPlayer.getWeight()));
		characterLbl.setText(HockmanMain.currPlayer.getCharacter()
				.getCharacterName());
		natGamesLbl.setText(Integer.toString(HockmanMain.currPlayer
				.getNatGames()));

		energyLbl.setText(Integer.toString(HockmanMain.currPlayer.getEnergy()));
		formLbl.setText(Integer.toString(HockmanMain.currPlayer.getForm()));
		shootingLbl.setText(Integer.toString(HockmanMain.currPlayer
				.getShooting()));
		staminaLbl
				.setText(Integer.toString(HockmanMain.currPlayer.getStamina()));
		skillLbl.setText(Integer.toString(HockmanMain.currPlayer.getSkill()));
		passingLbl
				.setText(Integer.toString(HockmanMain.currPlayer.getPassing()));
		powerLbl.setText(Integer.toString(HockmanMain.currPlayer.getPower()));
		offenseLbl
				.setText(Integer.toString(HockmanMain.currPlayer.getOffense()));
		defenseLbl
				.setText(Integer.toString(HockmanMain.currPlayer.getDefense()));
		totalStrengthLbl.setText(Integer.toString(HockmanMain.currPlayer
				.getTotalStrength()));
		gamesLbl.setText(Integer.toString(HockmanMain.currPlayer
				.getMatchesPlayed()));
		if (HockmanMain.currPlayer.getPosition().getPosID() == ch.hockman.model.position.Position.PosID.GOALIE) {
			goalsTextLbl.setText("GAA");
			assistsTextLbl.setText("Save %");
			// goalie: GAA and save percentage
			int matchesPlayed = HockmanMain.currPlayer.getMatchesPlayed();
			DecimalFormat df = new DecimalFormat(",##0.00");			
			String gaa = df.format((matchesPlayed == 0 ? 0
							: (float) HockmanMain.currPlayer.getGoals()
									/ matchesPlayed));

			int shots = HockmanMain.currPlayer.getAssists()
					+ HockmanMain.currPlayer.getGoals();
			String savePerc = df.format(shots == 0 ? 0
					: (100 - (float) 100 / shots
							* HockmanMain.currPlayer.getGoals()));

			goalsLbl.setText(gaa);
			assistsLbl.setText(savePerc);
		} else {
			goalsTextLbl.setText("Goals");
			assistsTextLbl.setText("Assists");
			goalsLbl.setText(Integer.toString(HockmanMain.currPlayer.getGoals()));
			assistsLbl.setText(Integer.toString(HockmanMain.currPlayer
					.getAssists()));
		}
		penaltyLbl
				.setText(Integer.toString(HockmanMain.currPlayer.getPenalty()));
		plusMinusLbl.setText(Integer.toString(HockmanMain.currPlayer
				.getPlusMinus()));
		wageLbl.setText(Integer.toString(HockmanMain.currPlayer.getWage()));

		Contracts contract = HockmanMain.currPlayer.getContracts();
		String s;
		if (contract.getNextContr().getTeam() == null) {
			s = Integer.toString(contract.getCurrContrYears());
			s += " Y";
		} else if (contract.getCurrContr().getTeam().equals(
				contract.getNextContr().getTeam())) {
			s = Util.getModelResourceBundle().getString("L_PROLONGED");
		} else {
			s = Util.getModelResourceBundle().getString("L_CANCELED");
		}
		contractLbl.setText(s);
		feeLbl.setText(Integer.toString(HockmanMain.currPlayer.getFee()));

		injuryLbl.setText(Integer.toString(HockmanMain.currPlayer.getHealth()
				.getInjury()));
		hurtLbl.setText(Integer.toString(HockmanMain.currPlayer.getHealth()
				.getHurt()));

		Motivation motivation = HockmanMain.currPlayer.getMotivation();
		motivationText.setText(motivation.getReasonText());
		motivationText.setEditable(false);
		personalText.setText(HockmanMain.currPlayer.getPersonal());
		personalText.setEditable(false);
		careerText.setText(HockmanMain.currPlayer.getCareer());
		careerText.setEditable(false);
	}