private void openCD() {
		String dir;
		while((dir=findCD()) == null);
		System.out.println(dir);
		InputStream toc = null;
		try {
			toc = cdda.getTocAsXml(dir);
			//if(false) throw new IOException();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (RuntimeException e){
			e.printStackTrace();
		}
		String[] sa = null;
		try{
			sa = parseTOC(toc);
		}catch(IOException e){
			throw new RuntimeException(e);
		}
		for(int i = 0; i < sa.length; i++){
			tracks[i] = new Track(sa[i]);
		}
	}