public void editTags(JTable source) throws CannotReadException, IOException, TagException, ReadOnlyFileException, InvalidAudioFrameException, CannotWriteException	{				
		String[] lib = listLib();
//		String[] playlistLib = PlaylistPanel.listLib();
		if (source.getSelectedRowCount() < 2)	{
			int modelRow = source.convertRowIndexToModel(source.getSelectedRow());
			AudioFile f = null;
			if (source == LibraryPanel.table){
				f = AudioFileIO.read(new File(lib[modelRow]));
			}
	/*		if (source == PlaylistPanel.table2){
				f = AudioFileIO.read(new File(playlistLib[modelRow]));
			}*/
			Tag tag = f.getTag();
			tag.setField(FieldKey.TITLE, GUI.titleEdit.getText());
			tag.setField(FieldKey.ARTIST, GUI.artistEdit.getText());
			tag.setField(FieldKey.ALBUM, GUI.albumEdit.getText());
			tag.setField(FieldKey.GENRE, GUI.genreEdit.getText());
			f.commit();
			updateRow(source,modelRow);	
		} else	{
			int rows[] = source.getSelectedRows();
			ArrayList<Integer> modelRows = new ArrayList<Integer>();
			for (int i = 0; i < rows.length; i++)	{
				modelRows.add(source.convertRowIndexToModel(rows[i]));
			}
			if (source == LibraryPanel.table){
				AudioFile f = null;
				for (int i = 0; i < modelRows.size(); i++)	{
					f = AudioFileIO.read(new File(lib[modelRows.get(i)]));
					Tag tag = f.getTag();
					if (GUI.titleEdit.getText().length() > 0)	{
						tag.setField(FieldKey.TITLE, GUI.titleEdit.getText());
					}
					if (GUI.artistEdit.getText().length() > 0)	{
						tag.setField(FieldKey.ARTIST, GUI.artistEdit.getText());
					}
					if (GUI.albumEdit.getText().length() > 0)	{
						tag.setField(FieldKey.ALBUM, GUI.albumEdit.getText());
					}
					if (GUI.genreEdit.getText().length() > 0)	{
						tag.setField(FieldKey.GENRE, GUI.genreEdit.getText());
					}
					f.commit();
					updateRow(source,modelRows.get(i));	
				}
			}
		/*	if (source == PlaylistPanel.table2){
				AudioFile f = null;
				for (int i = 0; i < modelRows.size(); i++)	{
					f = AudioFileIO.read(new File(playlistLib[modelRows.get(i)]));
					Tag tag = f.getTag();
					if (uSicPanel.titleEdit.getText().length() > 0)	{
						tag.setField(FieldKey.TITLE, uSicPanel.titleEdit.getText());
					}
					if (uSicPanel.artistEdit.getText().length() > 0)	{
						tag.setField(FieldKey.ARTIST, uSicPanel.artistEdit.getText());
					}
					if (uSicPanel.albumEdit.getText().length() > 0)	{
						tag.setField(FieldKey.ALBUM, uSicPanel.albumEdit.getText());
					}
					if (uSicPanel.genreEdit.getText().length() > 0)	{
						tag.setField(FieldKey.GENRE, uSicPanel.genreEdit.getText());
					}
					f.commit();
					updateRow(source,modelRows.get(i));	
				}
			}*/
		}
	}