private void onSave() {
if(playlist.size() > 0) {
JFileChooser fc = new JFileChooser();
fc.addChoosableFileFilter(new MyFilter());
int returnVal = fc.showSaveDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
String url = fc.getSelectedFile().getAbsolutePath();
if(url.endsWith(".m3u"))
url = url.substring(0, url.length() - 4);
url += ".m3u";