private void showHistogram(){
        int[] histogram;
        CreateHistogram.availableChannel histogramColor;
        switch(this.jComboBoxHistogram.getSelectedItem().toString()){
            case "RED":
                    histogram=ObjHistogram.histogramRed(ObjTransformFormats.iconToBufferedImage(this.jLabelImage.getIcon()));
                    histogramColor= CreateHistogram.availableChannel.red;
                    break;
            case "GREEN":
                    histogram=ObjHistogram.histogramGreen(ObjTransformFormats.iconToBufferedImage(this.jLabelImage.getIcon()));
                    histogramColor= CreateHistogram.availableChannel.green;
                    break;
            case "BLUE":
                    histogram=ObjHistogram.histogramBlue(ObjTransformFormats.iconToBufferedImage(this.jLabelImage.getIcon()));
                    histogramColor= CreateHistogram.availableChannel.blue;
                    break;
            case "ALPHA":
                    histogram=ObjHistogram.histogramAlpha(ObjTransformFormats.iconToBufferedImage(this.jLabelImage.getIcon()));
                    histogramColor= CreateHistogram.availableChannel.alpha;
                    break;
            case "GRAYSCALE":
                    histogram=ObjHistogram.histogramGrayscale(ObjTransformFormats.iconToBufferedImage(this.jLabelImage.getIcon()));
                    histogramColor= CreateHistogram.availableChannel.grayscale;
                    break;
            default:
                    histogram=ObjHistogram.histogramGrayscale(ObjTransformFormats.iconToBufferedImage(this.jLabelImage.getIcon()));
                    histogramColor= CreateHistogram.availableChannel.grayscale;
                    break;
        }
        ObjBarHistogram.createHistogramBarChart(histogram, jPanelHistogram, histogramColor);
        this.jLabel_MaxHistogram.setText("Max value "+ ObjHistogram.getMaxValue()[0] + ", with " + ObjHistogram.getMaxValue()[1] + " pixels");
        this.jLabel_MinHistogram.setText("Min value "+ ObjHistogram.getMinValue()[0] + ", with " + ObjHistogram.getMinValue()[1] + " pixels");
    }