private void configurePieChartButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_configurePieChartButtonActionPerformed
   if (pieChart == null) {
     pieChart = manipulator.buildPieChart(valuesFrequencies);
   }
   if (pieChartDialog != null) {
     pieChartDialog.setVisible(true);
   } else {
     pieChartDialog =
         new JFreeChartDialog(
             WindowManager.getDefault().getMainWindow(),
             pieChart.getTitle().getText(),
             pieChart,
             1000,
             1000);
   }
 } // GEN-LAST:event_configurePieChartButtonActionPerformed
  private void showReportButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_showReportButtonActionPerformed

    if (pieChart == null) {
      pieChart = manipulator.buildPieChart(valuesFrequencies);
    }
    final String html =
        manipulator.getReportHTML(
            table,
            column,
            valuesFrequencies,
            pieChart,
            pieChartDialog != null ? pieChartDialog.getChartSize() : null);

    if (reportDialog != null) {
      reportDialog.dispose();
    }
    reportDialog = new SimpleHTMLReport(WindowManager.getDefault().getMainWindow(), html);
  } // GEN-LAST:event_showReportButtonActionPerformed