private void button_remove_blue_listMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_button_remove_blue_listMousePressed
    if(frame_index_selected!=-1)
    {
        if(current_frame==null)
        {
            Element new_frame = hitboxes_doc.createElement("Frame");
            new_frame.setAttribute("number", ""+(frame_index_selected+1));
            if(current_move==null)
            {
                Element new_move = hitboxes_doc.createElement("Move");
                new_move.setAttribute("name", ""+list_moves.getSelectedValue());
                hitboxes_doc.getFirstChild().appendChild(new_move);
                current_move=new_move;
            }
            current_move.appendChild(new_frame);
            current_frame=new_frame;
        }
        for(Node hitboxes_node=current_frame.getFirstChild();hitboxes_node!=null;hitboxes_node=hitboxes_node.getNextSibling())//Hitbox loop
        {
            if(hitboxes_node.getNodeName().equals("Hitboxes"))
            {
                if(((Element)hitboxes_node).getAttribute("variable").equals("blue"))
                {
                    current_frame.removeChild(hitboxes_node);
                }
            }
        }
        frame_index_selected=-1;
        updateHitboxes(current_frame);
    }
    else
    {
        JOptionPane.showMessageDialog(null, "Select a frame first.", "Be careful", JOptionPane.INFORMATION_MESSAGE);
    }
}//GEN-LAST:event_button_remove_blue_listMousePressed