frame.setVisible(true);
}
private XHTMLPanel setupPanel() {
XHTMLPanel panel = new XHTMLPanel();
DelegatingReplacedElementFactory delegatingFactory = new DelegatingReplacedElementFactory();
delegatingFactory.addReplacer(new SwingImageReplacer());
panel.getSharedContext().setReplacedElementFactory(delegatingFactory);
return panel;
}