private void addMovieToDBButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addMovieToDBButtonActionPerformed
        String title = titleTxt.getText();
        String actors = actorTxt.getText();

        String userRatingStr = userRatingTxt.getText();
        int userRating = Integer.parseInt(userRatingStr);

        String mpaaRating = mpaaRatingTxt.getText();
        String director = directorTxt.getText();
        String genre = genreTxt.getText();

        Movie m = new Movie(title, genre, director, actors, userRating, mpaaRating);
        db.addMovieToDB(m);
    }