int ret = fc.showOpenDialog(getRootPane());
if (ret == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
Playlist playlist = addPlaylist(Util.capitalize(Util.removeExt(file.getName()), " "));
ProgressDialog dialog = new ProgressDialog(tabbedPane, "Adding Files");
dialog.show(new Task.FileAddingTask(playlist, new File[]{fc.getSelectedFile()}, -1));
config.setString("playlists.lastDir", fc.getCurrentDirectory().getAbsolutePath());
}
}
});