private void createTopPanel(){
		JPanel topPanel = new JPanel();
		topPanel.setOpaque(false);
		topPanel.setPreferredSize(new Dimension(180, 420));
		
		// fill out inventory label
		add(Box.createVerticalStrut(50));
		
		slotPanel = new JPanel();
		slotPanel.setOpaque(false);
		slotPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 12, 10));
		slotPanel.setPreferredSize(new Dimension(180, 420));
		
		// create slots
		for(int i=0; i<player.getMaxInventorySize(); i++){
			ItemIcon itemIcon = new ItemIcon();

			itemIcon.addMouseListener(new MouseAdapter(){
				public void mousePressed(MouseEvent e){	
					if( ((ItemIcon)e.getSource()).getItem() instanceof WeaponItem ){
						System.out.println("Equip weaponitem!");
						player.equipItem(((ItemIcon)e.getSource()).getItem());
					} else if( ((ItemIcon)e.getSource()).getItem() instanceof ArmorItem ){
						System.out.println("Equip armoritem!");
						player.equipItem(((ItemIcon)e.getSource()).getItem());
					} else if( ((ItemIcon)e.getSource()).getItem() instanceof LifeItem ){
						System.out.println("Use lifepotion!");
						player.useItem(((ItemIcon)e.getSource()).getItem());
					}
				}
			});

			slotPanel.add(itemIcon);
			slots.add(itemIcon);
		}

		topPanel.add(slotPanel, BorderLayout.SOUTH);
		add(topPanel);
	}