public VocabQuizDefinition(Container pane, Color correctcolor, Color wrongcolor, File vocabquiz)
	{
		panel = this;
		setLayout(null);
		setBackground(Color.WHITE);
		pane.setBackground(Color.WHITE);
		cc = correctcolor;
		wc = wrongcolor;
		
		getWordsAndDefs(vocabquiz);
		defAreas = new JTextArea[definitions.length];
		wordFields = new JTextField[words.length];
		for(int i = 0; i < definitions.length; i++)
		{
			
			defAreas[i] = makeDefArea(definitions[i]);
			
		}
		
		for(int i = 0; i < words.length; i++)
		{
			
			wordFields[i] = makeWordField(words[i]);
			
		}
		
		dtw = new JButton("Definition to Word");
		dtw.addActionListener(
			new ActionListener()
			{
				
				public void actionPerformed(ActionEvent e)
				{
					
					Quiz.setPanel(panel, new VocabQuizWord(pane, cc, wc, vocabquiz));
					
				}
				
			}
		);
		dtw.setBounds(410,600,200,50);
		add(dtw);
		
		next = new JButton("Next");
		next.setBounds(200,330,100,25);
		next.setVisible(false);
		next.addActionListener(
			new ActionListener()
			{
				
				public void actionPerformed(ActionEvent e)
				{
					
					panel.remove(areaOnScreen);
					panel.remove(fieldOnScreen);
					areaOnScreen.setForeground(Color.BLACK);
					areaOnScreen.setEditable(true);
					areaOnScreen.setBorder(BorderFactory.createLineBorder(Color.BLACK));
					areaOnScreen.setText("");
					
					Random r = new Random();
					int i = -1;
					do
					{
						i = r.nextInt(wordFields.length);
					}while(i == lastIndex);
					lastIndex = i;
					panel.add(areaOnScreen = defAreas[i]);
					panel.add(fieldOnScreen = wordFields[i]);
					
					panel.repaint();
					panel.revalidate();
					next.setVisible(false);
					areaOnScreen.requestFocusInWindow();
					
				}
				
			}
		);
		add(next);
		
		Random r = new Random();
		int i = -1;
		do
		{
			i = r.nextInt(wordFields.length);
		}while(i == lastIndex && inWordsArray(i) && inDefinitionsArray(i) && i != -1);
		lastIndex = i;
		add(areaOnScreen = defAreas[i]);
		add(fieldOnScreen = wordFields[i]);
		
		defs = new JButton("Definitions");
		defs.addActionListener(
			new ActionListener()
			{
				
				public void actionPerformed(ActionEvent e)
				{
					
					Quiz.setPanel(panel, new VocabDefinitions(panel,pane,words,definitions));
					
				}
				
			}
		);
		defs.setBounds(620,600,120,50);
		add(defs);
		
		menu = new JButton("Menu");
		menu.setBounds(750,600,100,50);
		menu.addActionListener(
				
			new ActionListener()
			{

				@Override
				public void actionPerformed(ActionEvent e) {
					
					Quiz.setPanel(panel, Quiz.mm);
					
				}
				
			}
		
		);
		add(menu);
		
	}