private void search(final String query, final String type) {
		Toolkit.getDefaultToolkit().beep(); 
		new Thread((new Runnable() {
			public void run() {
				try {
					JComponent panel2 = null;
					String searchKey = query;

					panel2 = makeTextPanel(searchKey,type,jTabbedPane.getTabCount());
					if (type.equals("playlist")) searchKey = searchKey.substring(0,query.indexOf(":"));
					if (type.equals("album")) searchKey = searchKey.substring(0,query.indexOf(":"));

					jTabbedPane.addTab(("Searching - ")+searchKey, panel2);
					txtSearch.setText("");

				} catch (IOException e) {
					e.printStackTrace();
				} catch (CannotReadException e) {
					e.printStackTrace();
				} catch (TagException e) {
					e.printStackTrace();
				} catch (ReadOnlyFileException e) {
					e.printStackTrace();
				} catch (InvalidAudioFrameException e) {
					e.printStackTrace();
				} catch (Exception e) {
					e.printStackTrace();
				}

			}
		})).start();	

	}