Package org.lobobrowser.html.gui

Examples of org.lobobrowser.html.gui.HtmlPanel


        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
    }
View Full Code Here


    panel.add(toolbar, constraints);
    constraints.gridx = 0;
    constraints.gridy++;

    // Error description
    textDescription = new HtmlPanel();
    ucontext = new SimpleUserAgentContext();
    rcontextDescription = new MWHtmlRendererContext(textDescription, ucontext);
    textDescription.setPreferredSize(new Dimension(500, 100));
    textDescription.setMinimumSize(new Dimension(200, 100));

    // Parameters description
    textParameters = new HtmlPanel();
    rcontextParameters = new MWHtmlRendererContext(textParameters, ucontext);
    textParameters.setPreferredSize(new Dimension(500, 100));
    textParameters.setMinimumSize(new Dimension(200, 100));

    // Split pane
View Full Code Here

      constraints.gridy++;
    }

    // Preview
    if (showPreview) {
      htmlPreview = new HtmlPanel();
      ucontext = new SimpleUserAgentContext();
      rcontext = new MWHtmlRendererContext(htmlPreview, ucontext);
      constraints.fill = GridBagConstraints.BOTH;
      constraints.gridwidth = 2;
      constraints.gridx = 0;
View Full Code Here

    constraints.gridy++;

    // Information
    Component component = null;
    if (html) {
      textInformation = new HtmlPanel();
      ucontextInformation = new SimpleUserAgentContext();
      rcontextInformation = new MWHtmlRendererContext(textInformation, ucontextInformation);
      component = textInformation;
    } else {
      textPane = new JTextPane();
View Full Code Here

TOP

Related Classes of org.lobobrowser.html.gui.HtmlPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.