예제 #1
0
 public boolean getParticlesTableFile() {
   java.lang.String ptable_dir = prefs.get("QuickPALM.ptable_dir", ".");
   java.lang.String ptable_file = prefs.get("QuickPALM.ptable_file", "Particles Table.xls");
   OpenDialog chooser = new OpenDialog("Load Particles Table", ptable_dir, ptable_file);
   ptablefile = chooser.getDirectory() + chooser.getFileName();
   prefs.set("QuickPALM.ptable_dir", chooser.getDirectory());
   prefs.set("QuickPALM.ptable_file", chooser.getFileName());
   return true;
 }
예제 #2
0
 public boolean getCalibrationFile() {
   java.lang.String cal_dir = prefs.get("QuickPALM.cal_dir", ".");
   java.lang.String cal_file = prefs.get("QuickPALM.cal_file", "Astigmatism calibration.xls");
   OpenDialog chooser = new OpenDialog("Astigmatism calibration", cal_dir, cal_file);
   calfile = chooser.getDirectory() + chooser.getFileName();
   prefs.set("QuickPALM.cal_dir", chooser.getDirectory());
   prefs.set("QuickPALM.cal_file", chooser.getFileName());
   return true;
 }