/** * Creates a new renderer with no document specified. */ public Graphics2DRenderer() { panel = new XHTMLPanel(); panel.setInteractive(false); }
/** * Creates a new renderer with no document specified. */ public Graphics2DRenderer() { panel = new XHTMLPanel(); panel.setInteractive(false); }
XHTMLPanel panel = new XHTMLPanel(); panel.setDocument("http://www.google.com");
XHTMLPanel panel = new XHTMLPanel(new UAC());
final XHTMLPanel p = new XHTMLPanel(); p.setDocumentFromString(h, resource, new XhtmlNamespaceHandler());
final XHTMLPanel p = new XHTMLPanel(); p.setDocumentFromString(h, resource, new XhtmlNamespaceHandler());
closeButton = new JButton(); fSScrollPane1 = new FSScrollPane(); xHTMLPanel1 = new XHTMLPanel();
closeButton = new JButton(); 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); }
panel = new XHTMLPanel(); int width = 360; int height = 500;
panel = new XHTMLPanel(); int width = 360; int height = 500;
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); }
private void initComponents() { setLayout(new ProfileDisplayLayout()); LinedBoxPanel buttonsPanel = new LinedBoxPanel(true).fullyPadded(); launchButton = new JButton(_("launcher.launch")); editProfileButton = new JButton(_("launcher.editProfile")); XHTMLPanel view = new XHTMLPanel(new ResourceUserAgent()); view.getSharedContext().getTextRenderer().setSmoothingThreshold(6f); Font font = launchButton.getFont().deriveFont(13f); launchButton.setFont(font); editProfileButton.setFont(font); buttonsPanel.setBorder(BorderFactory.createEmptyBorder()); SwingHelper.removeOpaqueness(buttonsPanel); titleLabel.setFont(titleLabel.getFont().deriveFont(35f)); buttonsPanel.addElement(launchButton); buttonsPanel.addElement(editProfileButton); add(titleLabel, ProfileDisplayLayout.TITLE); add(buttonsPanel, ProfileDisplayLayout.BUTTONS); add(view, BorderLayout.CENTER); view.setDocument("/resources/default.html"); setDocumentStyle(view); }