public void run(){
		try{
			line = (SourceDataLine)AudioSystem.getLine(info);
			line.open(af);
			line.start(); 
			int num = 0;
			while((ais != null) && ( num = ais.read(buff)) != -1){
				{
					interf.updateDiagram(buff);
					line.write(buff, 0, num);
				}
			}
			line.drain();
		}catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (LineUnavailableException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
		if(ais != null){
			stopThread();		
		    button.setText("Start Recording Sound");
		    if(Optiums.DISABLES_BUTTONS)
		    	buttonRecorder.setEnabled(true);
		    interf.deleteMyWindowListener();
		}
	}