private void editMovieInBDButonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editMovieInBDButonActionPerformed
        try {
            int row = movies.getSelectedRow();
            int movieID = (Integer) movies.getModel().getValueAt(row, 0); 
            db.editMovieInDB(movieID, new Movie(titleTxt.getText(), genreTxt.getText(), directorTxt.getText(), actorTxt.getText(), Integer.parseInt(userRatingTxt.getText()), mpaaRatingTxt.getText()));
        }
        catch (Exception e) {
            System.out.println(e);
        }
    }