return true;
}
public void deletePlaylist() {
DefaultMutableTreeNode node = ((DefaultMutableTreeNode)getLastSelectedPathComponent());
PlaylistView pl = ((PlaylistView)node.getUserObject());
int id = pl.getPlaylistID();
if (JOptionPane.YES_OPTION==JOptionPane.showConfirmDialog(null, "Soll die Playlist \""+pl.getPlaylistName()+"\" wirklich gelöscht werden?", "Sicher?", JOptionPane.YES_NO_OPTION)) {
PhoenixCore.DBCON.deleteOnLib("delete from playlist_track where listid="+id);
PhoenixCore.DBCON.deleteOnLib("delete from playlists where id="+id);
((DefaultTreeModel)getModel()).removeNodeFromParent(node);
setSelectionRow(0);
}