import javax.swing.JFileChooser;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class UNCFileChooserIssue {

    public static void main(String[] args) throws UnsupportedLookAndFeelException, ClassNotFoundException, InstantiationException, IllegalAccessException {
        if (args.length == 0) {
            System.out.println("Usage: java UNCFileCHooserIssue <path>");
            System.exit(1);
        }
        // Comment/uncomment to change LookAndFeel
        UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
        //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        new JFileChooser(args[0]).showOpenDialog(null);
    }
}
