File output = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, true, ".png", "PNG files");
File output = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, true, ".png", ResourceManager.getString("png.files"));
  public void actionPerformed(ActionEvent e)  {    File output = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, true, ".png", "PNG files");    if(output==null) return;    WorkflowGraph graph = WorkflowDesigner.INSTANCE.getCurrentGraph();    BufferedImage image = Utils.toImage(graph);    try    {      ImageIO.write(image, "png", output);    }    catch(IOException e1)    {      log.error("Error writing png file", e1);    }  }