GT._("Message"),
TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION));
if (Version.HIGHLIGHT) {
panel.setBackground(Color.RED);
}
HtmlPanel textMessage = new HtmlPanel();
UserAgentContext ucontextMessage = new SimpleUserAgentContext();
HtmlRendererContext rcontextMessage = new MWHtmlRendererContext(
textMessage, ucontextMessage);
textMessage.setPreferredSize(new Dimension(500, 150));
textMessage.setMinimumSize(new Dimension(100, 100));
DocumentBuilderImpl dbi = new DocumentBuilderImpl(
ucontextMessage, rcontextMessage);
InputSource is = new InputSource(new StringReader(Version.MESSAGE));
is.setSystemId(EnumWikipedia.EN.getConfiguration().getString(WPCConfigurationString.HELP_URL));
try {
textMessage.setDocument(dbi.parse(is), rcontextMessage);
} catch (SAXException e) {
// Nothing
} catch (IOException e) {
// Nothing
}