private void jLabel3MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel3MouseReleased
        // TODO add your handling code here:
        
        if(!jList2.isSelectionEmpty() && !linkPresentForFrame()){
            x2 = evt.getX();
            y2 = evt.getY();
            w = x1 - x2;
            h = y1 - y2;
            w = w * -1;
            h = h * -1;
            Graphics g = jLabel3.getGraphics();
            g.setColor(Color.red);
            int[] arr = getDiagonalCoord(x1,y1,x2,y2);
            
            g.drawRect(arr[0], arr[1], Math.abs(arr[2]-arr[0]), Math.abs(arr[3]-arr[1]));
            
            //adding keyframe to the meta record
            
            String linkSelected = jList2.getSelectedValue().toString();
            KeyFrame key = new KeyFrame(jSlider1.getValue(),arr[0],arr[1],arr[2],arr[3]);
            
            for(int i=0; i<hyperLinks; i++){
                if(metaRecords.get(i).rectName.equals(linkSelected)){
                    metaRecords.get(i).kf.add(key);
                    metaRecords.get(i).numOfKeyFrames++;
                }
            }
        }
    }//GEN-LAST:event_jLabel3MouseReleased