public void print(String str){
		
		JEditorPane transcript = new JEditorPane("text/html", "");
		transcript.setText(str);
		try {
			boolean complete = transcript.print();
			if (complete)
			{
				JOptionPane.showMessageDialog(null,"Done Printing!","Information",JOptionPane.INFORMATION_MESSAGE);
			}
			else
			{
				JOptionPane.showMessageDialog(null,"Printing Aborted !!","Printer",JOptionPane.ERROR_MESSAGE);
			}
		} catch (PrinterException e1) {
			// TODO Auto-generated catch block
			JOptionPane.showMessageDialog(null, e1);
		}
	}