private void list_movesMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_list_movesMousePressed
    current_move=null;
    current_sprite=null;
    hitbox_index_selected=-1;
    frame_index_selected=-1;
    //Add frames
    listOfMoves_main_file = main_doc.getElementsByTagName("Move");

    DefaultListModel model = new DefaultListModel();

    for(int s=0; s<listOfMoves_main_file.getLength() ; s++)
    {
        Node move_node = listOfMoves_main_file.item(s);
        Element move_element = (Element)move_node;
        if(move_element.getAttribute("name").equals(list_moves.getSelectedValue()))
        {
            int frames = Integer.parseInt(move_element.getAttribute("frames"));
            for(int i=0;i<frames;i++)
            {
                model.add(i, "frame "+(i+1));
            }
            break;
        }
    }

    list_frames.setModel(model);

    //Clear hitboxes list
    DefaultListModel clean_model = new DefaultListModel();
    
    //Upadate current_move
    listOfMoves_sprites_file = sprites_doc.getElementsByTagName("Move");
    for(int s=0; s<listOfMoves_sprites_file.getLength() ; s++)//Move loop
    {
        Node move_node = listOfMoves_sprites_file.item(s);
        Element move_element = (Element)move_node;
        if(move_element.getAttribute("name").equals(list_moves.getSelectedValue()))
        {
            current_move=move_element;
        }
    }
}//GEN-LAST:event_list_movesMousePressed