예제 #1
0
  public static File creSaveDialog(Window parent, String initPath, String initFileName) {
    FileChooser f = new FileChooser();

    f.setInitialDirectory(initPath != null ? new File(initPath) : null);
    f.setInitialFileName(initFileName != null ? initFileName : "");
    return f.showSaveDialog(parent);
  }
예제 #2
0
 public static File creOpenDialog(Window parent, String initPath) {
   FileChooser f = new FileChooser();
   f.setInitialDirectory(initPath != null ? new File(initPath) : null);
   return f.showOpenDialog(parent);
 }