setCurrentDirectorypublic void setCurrentDirectory(File dir)Sets the current directory. Passing in null sets the file chooser to point to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix. If the file passed in as currentDirectory is not a directory, the parent of the file will be used as the currentDirectory. If the parent is not traversable, then it will walk up the parent tree until it finds a traversable directory, or hits the root of the file system. Parameters:
dir - the current directory to point to
See Also:
getCurrentDirectory()
dir - the current directory to point to
See Also:
getCurrentDirectory()
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货