private JTextPane createTextPane() {
		
		TransparentTextPane textPane = new TransparentTextPane();
		StyledDocument doc = textPane.getStyledDocument();
		addStylesToDocument(doc);
		
		Style newStyle = doc.addStyle("newStyle", doc.getStyle("defaultStyle"));
		for(TextBody text : textObject.getTextBody())
		{
			
			newStyle = doc.getStyle("defaultStyle");
	
			StyleConstants.setBold(newStyle, text.getBold());
			StyleConstants.setItalic(newStyle, text.getItalic());
			StyleConstants.setUnderline(newStyle, text.getUnderlined());
			
			if(text.getBranch() != -1)
			{
				newStyle.addAttribute(HTML.Attribute.LINK, text.getBranch());
			}
			else
			{
				newStyle.addAttribute(HTML.Attribute.LINK, -1);
			}
			
			try{
				doc.insertString(doc.getLength(), text.getText(), newStyle);
			} catch (BadLocationException ble) {
				System.err.println("could't insert text into JTextPane");
			}
		}
		
		return textPane;
	}