Displays an open file dialog and returns the path to the choosen file, or returns null if the dialog is canceled.
(String dialogTitle)
| 2029 | /** Displays an open file dialog and returns the path to the |
| 2030 | choosen file, or returns null if the dialog is canceled. */ |
| 2031 | public static String getFilePath(String dialogTitle) { |
| 2032 | OpenDialog od = new OpenDialog(dialogTitle); |
| 2033 | return od.getPath(); |
| 2034 | } |
| 2035 | |
| 2036 | /** Displays a file open dialog box and then opens the tiff, dicom, |
| 2037 | fits, pgm, jpeg, bmp, gif, lut, roi, or text file selected by |