code: private void jComboBoxChartTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxChartTypeActionPerformed
          int selectedType = jComboBoxChartType.getSelectedIndex();
          switch (selectedType) {
              case 0:
                  parent.getGraphPanelChart().getChartSettings().setChartType(ChartSettings.CHART_TYPE_LINE);
                  jCheckBoxDrawMarkers.setVisible(true);
                  jComboBoxLineWidth.setVisible(true);
                  jLabelLineWidth.setVisible(true);
                  break;
              case 1:
                  parent.getGraphPanelChart().getChartSettings().setChartType(ChartSettings.CHART_TYPE_BAR);
                  jCheckBoxDrawMarkers.setVisible(false);
                  jComboBoxLineWidth.setVisible(false);
                  jLabelLineWidth.setVisible(false);
                  break;
              case 2:
                  parent.getGraphPanelChart().getChartSettings().setChartType(ChartSettings.CHART_TYPE_CSPLINE);
                  jCheckBoxDrawMarkers.setVisible(true);
                  jComboBoxLineWidth.setVisible(true);
                  jLabelLineWidth.setVisible(true);
                  break;
              default:
                  parent.getGraphPanelChart().getChartSettings().setChartType(ChartSettings.CHART_TYPE_DEFAULT);
                  break;
          }
          refreshGraphPreview();
      }
docs: GEN-LAST:event_jLabelLogoMouseClicked