Examples of SunflowSceneFileChooser


Examples of org.jwildfire.create.tina.swing.SunflowSceneFileChooser

  private String genNewFileId() {
    return new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss").format(new Date());
  }

  private JFileChooser getSceneJFileChooser() {
    JFileChooser fileChooser = new SunflowSceneFileChooser(Prefs.getPrefs());
    fileChooser.setAcceptAllFileFilterUsed(false);
    return fileChooser;
  }
View Full Code Here

Examples of org.jwildfire.create.tina.swing.SunflowSceneFileChooser

    refreshPreview(false);
  }

  public void previewSunflowExportButton_clicked() {
    try {
      JFileChooser chooser = new SunflowSceneFileChooser(prefs);
      if (prefs.getSunflowScenePath() != null) {
        try {
          chooser.setCurrentDirectory(new File(prefs.getSunflowScenePath()));
        }
        catch (Exception ex) {
          ex.printStackTrace();
        }
      }
      if (chooser.showSaveDialog(rootTabbedPane) == JFileChooser.APPROVE_OPTION) {
        File file = chooser.getSelectedFile();
        exportMeshToSunflow(currPreviewMesh.getMesh(), file.getAbsolutePath());
      }
    }
    catch (Throwable ex) {
      errorHandler.handleError(ex);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.