public Leg(Container pane, Color correctcolor, Color wrongcolor)
	{
		JPanel panel = this;
		setLayout(null);
		setBackground(Color.WHITE);
		pane.setBackground(Color.WHITE);
		cc = correctcolor;
		wc = wrongcolor;
		
		try
		{
			File f = new File("resources" + File.separator + "Leg.jpg");
			bi = ImageIO.read(f);
			
			ns = "Neck";
			lcs = lc2s = "Lateral condyle";
			pss = "Patellar surface";
			hs = "Head";
			lts = "Lesser trochanter";
			ils = "Intertrochanteric line";
			gts = "Gluteal tuberosity";
			infs = "Intercondylar fossa";
			mcs = "Medial condyle";
			gtrs = "Greater trochanter";
			ics = "Intertrochanteric crest";
			
			n = new JTextField();
			n.setBackground(Color.WHITE);
			n.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(n.getText().equalsIgnoreCase(ns))
						{
							
							n.setForeground(cc);
							n.setBorder(null);
							n.setEditable(false);
							
						}
						else
						{
							
							n.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			n.setBounds(170,60,80,25);
			add(n);
			
			lc = new JTextField();
			lc.setBackground(Color.WHITE);
			lc.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(lc.getText().equalsIgnoreCase(lcs))
						{
							
							lc.setForeground(cc);
							lc.setBorder(null);
							lc.setEditable(false);
							
						}
						else
						{
							
							lc.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			lc.setBounds(110,495,110,25);
			add(lc);
			
			ps = new JTextField();
			ps.setBackground(Color.WHITE);
			ps.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(ps.getText().equalsIgnoreCase(pss))
						{
							
							ps.setForeground(cc);
							ps.setBorder(null);
							ps.setEditable(false);
							
						}
						else
						{
							
							ps.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			ps.setBounds(130,535,110,25);
			add(ps);
			
			h = new JTextField();
			h.setBackground(Color.WHITE);
			h.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(h.getText().equalsIgnoreCase(hs))
						{
							
							h.setForeground(cc);
							h.setBorder(null);
							h.setEditable(false);
							
						}
						else
						{
							
							h.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			h.setBounds(390,95,80,25);
			add(h);
			
			lt = new JTextField();
			lt.setBackground(Color.WHITE);
			lt.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(lt.getText().equalsIgnoreCase(lts))
						{
							
							lt.setForeground(cc);
							lt.setBorder(null);
							lt.setEditable(false);
							
						}
						else
						{
							
							lt.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			lt.setBounds(385,140,120,25);
			add(lt);
			
			il = new JTextField();
			il.setBackground(Color.WHITE);
			il.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(il.getText().equalsIgnoreCase(ils))
						{
							
							il.setForeground(cc);
							il.setBorder(null);
							il.setEditable(false);
							
						}
						else
						{
							
							il.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			il.setBounds(350,167,150,25);
			add(il);
			
			gt = new JTextField();
			gt.setBackground(Color.WHITE);
			gt.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(gt.getText().equalsIgnoreCase(gts))
						{
							
							gt.setForeground(cc);
							gt.setBorder(null);
							gt.setEditable(false);
							
						}
						else
						{
							
							gt.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			gt.setBounds(390,195,130,25);
			add(gt);
			
			inf = new JTextField();
			inf.setBackground(Color.WHITE);
			inf.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(inf.getText().equalsIgnoreCase(infs))
						{
							
							inf.setForeground(cc);
							inf.setBorder(null);
							inf.setEditable(false);
							
						}
						else
						{
							
							inf.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			inf.setBounds(390,418,140,25);
			add(inf);
			
			mc = new JTextField();
			mc.setBackground(Color.WHITE);
			mc.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(mc.getText().equalsIgnoreCase(mcs))
						{
							
							mc.setForeground(cc);
							mc.setBorder(null);
							mc.setEditable(false);
							
						}
						else
						{
							
							mc.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			mc.setBounds(390,450,130,25);
			add(mc);
			
			gtr = new JTextField();
			gtr.setBackground(Color.WHITE);
			gtr.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(gtr.getText().equalsIgnoreCase(gtrs))
						{
							
							gtr.setForeground(cc);
							gtr.setBorder(null);
							gtr.setEditable(false);
							
						}
						else
						{
							
							gtr.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			gtr.setBounds(630,70,130,25);
			add(gtr);
			
			ic = new JTextField();
			ic.setBackground(Color.WHITE);
			ic.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(ic.getText().equalsIgnoreCase(ics))
						{
							
							ic.setForeground(cc);
							ic.setBorder(null);
							ic.setEditable(false);
							
						}
						else
						{
							
							ic.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			ic.setBounds(630,130,160,25);
			add(ic);
			
			lc2 = new JTextField();
			lc2.setBackground(Color.WHITE);
			lc2.addActionListener(
				new ActionListener(){
					
					@Override
					public void actionPerformed(ActionEvent e) {
						
						if(lc2.getText().equalsIgnoreCase(lc2s))
						{
							
							lc2.setForeground(cc);
							lc2.setBorder(null);
							lc2.setEditable(false);
							
						}
						else
						{
							
							lc2.setForeground(wc);
							
						}
						
					}
					
				}
					
			);
			
			lc2.setBounds(630,370,130,25);
			add(lc2);
			
			back = new JButton("Back");
			back.setBounds(750,600,100,50);
			back.addActionListener(
					
				new ActionListener()
				{

					@Override
					public void actionPerformed(ActionEvent e) {
						
						Quiz.setPanel(panel, BonesMenu.panel);
						
					}
					
				}
			
			);
			add(back);
			
			JTextField[] fields = new JTextField[]{n,lc,ps,h,lt,il,gt,inf,mc,gtr,ic,lc2};
			String[] strings = new String[]{ns,lcs,pss,hs,lts,ils,gts,infs,mcs,gtrs,ics,lc2s};
			for(JTextField field : fields)
			{
				field.setBorder(BorderFactory.createLineBorder(Color.BLACK));
				field.addActionListener(
					new ActionListener()
					{
						
						public void actionPerformed(ActionEvent e)
						{
							for(int i = 0; i < fields.length; i++)
							{
								
								if((JTextField) e.getSource() == fields[i])
								{
									if(fields[i].getText().equalsIgnoreCase(strings[i]))
									{
										boolean found = false;
										
										for(int ii = i; ii < fields.length; ii++)
										{
											
											if(!found)
											{
												if(fields[ii].getText().equalsIgnoreCase(""))
												{
													fields[ii].requestFocusInWindow();
													found = true;
													
												}
											}
											
										}
										if(!found)
										{
											for(int ii = 0; ii < i; ii++)
											{
												if(!found)
												{
													if(fields[ii].getText().equals(""))
													{
														
														fields[ii].requestFocusInWindow();
														found = true;
														
													}
												}
												
											}
											
										}
									}
									
								}
								
							}
							
						}
						
					}
				);
			}
			
			answers = new JButton("Answers");
			answers.setBounds(640,600,100,50);
			answers.addActionListener(
				new ActionListener()
				{

					@Override
					public void actionPerformed(ActionEvent e) {
						
						for(int i = 0; i < fields.length; i++)
						{
							
							fields[i].setText(strings[i]);
							fields[i].setForeground(Color.BLACK);
							fields[i].setBorder(null);
							fields[i].setEditable(false);
							
						}
						
					}
					
					
					
				}
			);
			add(answers);
			
			reset = new JButton("Reset");
			reset.setBounds(530,600,100,50);
			reset.addActionListener(
				new ActionListener()
				{

					@Override
					public void actionPerformed(ActionEvent e) {
						
						for(JTextField field : fields)
						{
							
							field.setText("");
							field.setBorder(BorderFactory.createLineBorder(Color.BLACK));
							field.setForeground(Color.BLACK);
							field.setEditable(true);
							
						}
						
					}
					
					
					
				}
			);
			add(reset);
			
			
		}catch(IOException e)
		{
			
			e.printStackTrace();
			
		}
		
		
	}