@Override
	public void run() {
		try {

			Thread.sleep(2000);
			while (!huffmanTreeService.next(Main.this.deletedTreeLbl)) {
				displayStatus();
				displayDeletedTree();
				Thread.sleep(speedSlider.getValue() * 1000);
			}
		} catch (InterruptedException e1) {
			e1.printStackTrace();
		}

		showHuffmanCode();
		this.autoDisplayBtn.setEnabled(false);
		this.singleStepBtn.setEnabled(false);

	}