public void setFrame(int fNumber, int primary){
     // /*  
        BufferedImage img;
        img = new BufferedImage(352, 288, BufferedImage.TYPE_INT_RGB);
        int pix;
        //System.out.println("reflected? "+fNumber);
        for(int i=0; i<352; i++){
            for(int j=0; j<288; j++){
                if(primary==1)
                    img.setRGB(i,j,primaryVideoFrames[fNumber][i][j]);
                else
                    img.setRGB(i,j,secondaryVideoFrames[fNumber][i][j]);
            }
        }
        
        if(primary==1)
        {
            jLabel3.setIcon(new ImageIcon(img));
        }
        else
        {
            jLabel4.setIcon(new ImageIcon(img));
        }
        setRectangles();
    }