How to navigate to a network host in JFileChooser?
The Problem I have a JFileChooser and I need to programmatically set its currentDirectory to a network host containing several SMB shares (e.g. \\blah ). Technically this is not a "directory" but rather a shell folder representing a list of available shares. JFileChooser has no problems navigating to a specific share (e.g. \\blah\someShare ) but cannot handle the host "directory" itself (e.g. \\blah ). Users can navigate to such "directories" inside JFileChooser by going via "Network" shell folder, or by finding a specific share and navigating to its parent directory. Debugging shows that