* @param aTitle article title.
* @param aText article text.
*/
private void initGUI(URL aImageURL, String aTitle, String aText)
{
IArticleDisplayConfig articleConfig = config.getArticleViewConfig();
lbTitle = new JLabel(aTitle);
lbTitle.setToolTipText(aTitle);
tfText = new JEditorPane();
tfText.setEditorKit(new CustomHTMLEditorKit());
tfText.setText(StringUtils.excerpt(aText, EXCERPT_SENTENCES, EXCERPT_MIN_CHARS, EXCERPT_MAX_CHARS));
tfText.setEditable(false);
tfText.setToolTipText("<html>" + aText);
HTMLDocument doc = (HTMLDocument)tfText.getDocument();
doc.setBase(article.getLink());
Style def = doc.getStyle("default");
doc.addStyle(TEXT_STYLE_NAME, def);
UifUtilities.setFontAttributes(doc, TEXT_STYLE_NAME, articleConfig.getTextFont());
setViewMode(config.getViewMode());
layout = new FormLayout("5px, center:pref, 5px", "5px, pref, 5px, pref, 5px, pref, 5px");
setLayout(layout);