Java tutorial
//package com.java2s; import java.awt.FileDialog; public class Main { public static String getDirectoryFromFileDialog(FileDialog fileDialog) { return fileDialog.getDirectory(); } }