public HighscorePanel(Map<String, String> levelNameMap, Map<String, Integer> levelScoreMap) {
		this.levelNameMap = levelNameMap;
		this.levelScoreMap = levelScoreMap;
		
		header = new String[]{"Level Name", "Score"};
		data = new String[this.levelNameMap.size()][2];
		int count = 0;
		
		ValueComparator comparator = new ValueComparator(levelNameMap);
		TreeMap<String, String> sortedLevelNameMap = new TreeMap<>(comparator);
		sortedLevelNameMap.putAll(levelNameMap);

		
		
		for (Entry<String, String> entry : sortedLevelNameMap.entrySet()) {
			Integer score = this.levelScoreMap.get(entry.getKey());
			data[count][1] = score == null ? "no score" : score.toString();
			data[count][0] = entry.getValue();
			count++;
		}
		table = new JTable(data, header);
		table.setEnabled(false);
		scrollPane = new JScrollPane(table);
		
		table.setFillsViewportHeight(true);
		add(scrollPane);
		int width = new Integer(CoreConstants.getProperty("game.highscore.width"));
		int height = new Integer(CoreConstants.getProperty("game.highscore.height"));
		setPreferredSize(new Dimension(width, height));
		
	}