public void showHuffmanCode() {
		// ,ɻ
		HuffmanCodeService codeService = new HuffmanCodeService(
				huffmanTreeService.getMinHeap().deleteMin(),
				huffmanTreeService.getChars());
		Map<String, String> map = codeService.getCode();

		StringBuffer buf = new StringBuffer(50);
		buf.append("(ַ-Ȩ-)\n");
		Integer[] weightTemp = huffmanTreeService.getWeight();
		String[] charsTemp = huffmanTreeService.getChars();

		for (int i = 0; i < charsTemp.length; i++) {
			buf.append(charsTemp[i]);
			buf.append("--");
			buf.append(weightTemp[i]);
			buf.append("--");
			buf.append(map.get(charsTemp[i]));
			buf.append("\n");
		}

		// bufбıʾһʾ
		JOptionPane.showMessageDialog(Main.this, buf.toString(), "",
				JOptionPane.INFORMATION_MESSAGE);
	}