public void setRectangles() {
        int currentFrame = jSlider1.getValue();
        
        int linkSelected = jList2.getSelectedIndex();
        
        for(int i=0; i<metaRecords.size();i++)
        {
            Metafile m = metaRecords.get(i);
            for(int j=0; j<m.kf.size();j++)
            {
                KeyFrame k = m.kf.get(j);
                if(k.frameNum== currentFrame)
                {
                   //k.display();
                   Graphics g = jLabel3.getGraphics();
                   if(linkSelected==m.rectID)
                   {
                       g.setColor(Color.red);
                   }
                   else
                   {
                       g.setColor(Color.green);
                   }
                   g.drawRect(k.topLeftX,k.topLeftY,Math.abs(k.topLeftX-k.bottomRightX), Math.abs(k.topLeftY-k.bottomRightY));
                }
            }
        }
    }