private void updateLayout()
	{
		if (panelTop != null)
			mainPanel.remove(panelTop);
		if (panelBot != null)
			mainPanel.remove(panelBot);

		switch (type)
		{
		case conjugation:
			panelTop = new AddConjugPanel(frameDictionary.getLanguage1());
			panelBot = new AddConjugPanel(frameDictionary.getLanguage2());
			break;
		case simple:
			panelTop = new AddSimplePanel(frameDictionary.getLanguage1());
			panelBot = new AddSimplePanel(frameDictionary.getLanguage2());
			break;
		case number:
			panelTop = new AddNumberPanel(frameDictionary.getLanguage1());
			panelBot = new AddNumberPanel(frameDictionary.getLanguage2());
			break;
		}
		mainPanel.add(panelTop);
		mainPanel.add(panelBot);
		tabOrder = new LinkedList<Component>();
		for (Component i : panelTop.getComponents())
			tabOrder.add(i);
		for (Component i : panelBot.getComponents())
			tabOrder.add(i);
		tabOrder.add(btnConfirm);
		setFocusTraversalPolicy(new TabOrder(tabOrder));
		tabOrder.getFirst().requestFocus();

		this.setVisible(true);
	}