public void actionPerformed(ActionEvent evt)
    {
	if (chatCount == 6 && evt.getSource() == display)
	{
	    DungeonGame.mainPanel.panel.player.PlayerName = display.getText();
	    display.setVisible(false);
	    key = true;
	}
    }