Package org.jwildfire.create.tina.swing

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


    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

Related Classes of org.jwildfire.create.tina.swing.SunflowSceneFileChooser

Copyright © 2018 www.massapicom. 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.