fSScrollPane1 = new FSScrollPane(); xHTMLPanel1 = new XHTMLPanel();
fSScrollPane1 = new FSScrollPane(); xHTMLPanel1 = new XHTMLPanel();
/** * The default constructor for ReportView. * * @param core * @param controller * @param model */ public ReportView(final AppletCore core, final ValidationWizardController controller, final ValidationModel model) { super(core, controller, model); detailedReportValueHolder = new ValueHolder(""); diagnosticValueHolder = new ValueHolder(""); simpleReportValueHolder = new ValueHolder(""); if (DISPLAY_PLAINTEXT_REPORTS) { detailedReportText = ComponentFactory.createTextArea(detailedReportValueHolder); detailedReportText.setTabSize(2); simpleReportText = ComponentFactory.createTextArea(simpleReportValueHolder); simpleReportText.setTabSize(2); diagnosticText = ComponentFactory.createTextArea(diagnosticValueHolder); diagnosticText.setTabSize(2); } diagnostic = ComponentFactory.tree("Diagnostic", new DefaultTreeModel(null)); simpleReportHtmlPanel = new XHTMLPanel(); simpleReportScrollPane = new FSScrollPane(simpleReportHtmlPanel); detailedReportHtmlPanel = new XHTMLPanel(); detailedReportScrollPane = new FSScrollPane(detailedReportHtmlPanel); }
public void init() throws Exception { Container contentPane = this.getContentPane(); XHTMLPanel panel = new XHTMLPanel(); panel.getSharedContext().getTextRenderer().setSmoothingThreshold(0); // Anti-aliasing for all font sizes panel.setDocument(new File("c:\\Temp\\MyExperiment\\T2 BioCatalogue Plugin\\BioCatalogue Plugin\\resources\\test.html")); FSScrollPane scroll = new FSScrollPane(panel); contentPane.add(scroll); this.setTitle("XHTML rendered test"); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.pack(); this.setSize(1024, 768); }