Examples of MeshFileChooser


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

      generateMeshThread = null;
      enableControls();
    }
    else if (sequenceSlicesREd.getIntValue() > 0) {
      try {
        JFileChooser chooser = new MeshFileChooser(prefs);
        if (prefs.getTinaMeshPath() != null) {
          try {
            chooser.setCurrentDirectory(new File(prefs.getTinaMeshPath()));
          }
          catch (Exception ex) {
            ex.printStackTrace();
          }
        }
        if (chooser.showSaveDialog(rootTabbedPane) == JFileChooser.APPROVE_OPTION) {
          final File outFile = chooser.getSelectedFile();
          prefs.setLastMeshFile(outFile);

          MeshGenGenerateThreadFinishEvent finishEvent = new MeshGenGenerateThreadFinishEvent() {

            @Override
View Full Code Here

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

    refreshPreview(pMouseAdjusting);
  }

  public void loadPreviewMeshBtn_clicked() {
    try {
      JFileChooser chooser = new MeshFileChooser(prefs);
      if (prefs.getTinaMeshPath() != null) {
        try {
          chooser.setCurrentDirectory(new File(prefs.getTinaMeshPath()));
        }
        catch (Exception ex) {
          ex.printStackTrace();
        }
      }
      if (chooser.showOpenDialog(rootTabbedPane) == JFileChooser.APPROVE_OPTION) {
        File file = chooser.getSelectedFile();
        importPreviewMesh(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.