code: public void export() throws IOException {
  		final byte[] imageData = getImageData();
  		if (imageData != null) {
  			final File file = ImageFileChooser.chooseImage(this, false, getFileName());
  			if (file != null) {
  				try (OutputStream fileOutputStream = new BufferedOutputStream(
  						new FileOutputStream(file))) {
  					fileOutputStream.write(imageData);
  				}
  			}
  		}
  	}
docs: Affiche la boîte de dialogue d'export de l'image.
  @throws IOException e