public void paint(Graphics g) {
    	
        super.paint(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setStroke(new BasicStroke(2));
        
        for (int i = 0; i < next; i++)
        {
        	if (RightObjects.get(i).getClass().equals(TickerPanel.class))
        		g2.setColor((((TickerPanel)RightObjects.get(i)).getColor()));
        	if (LeftObjects.get(i).getClass().equals(TickerPanel.class))
        		g2.setColor((((TickerPanel)LeftObjects.get(i)).getColor()));
        	
        	int finalLX = leftGenerateX(LeftObjects.get(i));
        	int finalLY = GenerateY(LeftObjects.get(i));
        	
        	int finalRX = rightGenerateX(RightObjects.get(i));
        	int finalRY = GenerateY(RightObjects.get(i));
        	
        	if (RightObjects.get(i).getClass().equals(TickerPanel.class))
        		finalRX -= 5;
        	if (LeftObjects.get(i).getClass().equals(DynamicImagePanel.class))
        		finalLX -= 5;
        	if (RightObjects.get(i).getClass().equals(ImageButton.class))
        		finalRX -= 5;
        	
        	g2.drawLine(finalLX, finalLY, finalRX, finalRY);
        	
        	if (Target.get(i) == true)
        	{
        		double length = 12;
        		
        		int A = finalRX - finalLX;
        		int B = finalRY - finalLY;
        		double C = Math.sqrt(A*A + B*B);
        		int E = 25;
        		
        		double con = 57.2957795;
        		double D = Math.asin(B/C) * con;
        		//if (D < 0) D += 360;
        		double Y = Math.sin((D-E+180)/con);
        		double X = Math.cos((D-E+180)/con);
        		
        		int iX = (int) (X*length);
        		int iY = (int) (Y*length);
        		
        		g2.drawLine(finalRX, finalRY, finalRX+iX, finalRY+iY);
        		Y = Math.sin((D+E+180)/con);
        		X = Math.cos((D+E+180)/con);
        		iX = (int) (X*length);
        		iY = (int) (Y*length);
        		g2.drawLine(finalRX, finalRY, finalRX+iX, finalRY+iY);
        	}
        }
      }