Example #1
0
  @NotNull
  private JButton createSaveImageButton() {
    JButton saveImageButton = UiUtils.createSaveImageButton();
    saveImageButton.addActionListener(
        new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            String fileName = FileLog.getDate() + "_gauges.png";

            UiUtils.saveImageWithPrompt(fileName, content, gauges);
          }
        });
    return saveImageButton;
  }