non ne sono sicuro ma prova con new URL("file://"+fileChooser.getSelectedFile().getPath());