protected void selectImageFilter(){
        FileNameExtensionFilter imageFilter;
        imageFilter= new FileNameExtensionFilter("All files (*.*)","*.*");
        switch(this.selectedExtensionImage){
            case all:
                imageFilter = new FileNameExtensionFilter("All files (*.*)","*.*");
                break;
            case all_images:
                imageFilter = new FileNameExtensionFilter("All image files","bmp","dib","gif",
                        "jpg","jpeg","jpe","jfif","png");
                break;
            case bmp:
                imageFilter = new FileNameExtensionFilter("Bitmap (*.bmp, *.dib)","bmp","dib");
                break;
            case gif:
                imageFilter = new FileNameExtensionFilter("GIF (*.gif)","gif");
                break;
            case jpg:
                imageFilter = new FileNameExtensionFilter("JPEG (*.jpg,*.jpeg,*.jpe,*.jfif)","jpg","jpeg","jpe","jfif");
                break;
            case png:
                imageFilter = new FileNameExtensionFilter("PNG (*.png)","png");
                break;   
        }
        this.selectorImage.setFileFilter(imageFilter);
    }