package org.micromanager.nativegui;

import javax.swing.JFileChooser;
import java.io.File;

public class NativeGUI {
  public static String runMDABrowser(String startDirectory) {
         JFileChooser fc = new JFileChooser();
         fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
         fc.setSelectedFile(new File(startDirectory));
         int retVal = fc.showOpenDialog(null);
         if (retVal == JFileChooser.APPROVE_OPTION) {
            return fc.getSelectedFile().getAbsolutePath();
         } else {
            return "";
        }
  }

}


Put this file back in, needed in Windows.
Put this file back in, needed in Windows.

git-svn-id: 03a8048b5ee8463be5048a3801110fb50f378627@5030 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
