Package javax.swing

Examples of javax.swing.JEditorPane$HeaderParser


    pane.setViewportBorder(BorderFactory.createEmptyBorder());
   
    mSettingsPn.add(pane, cc.xy(2, 3));
   
    if(TVBrowser.isUsingSystemTray()) {
      JEditorPane helpLabel = UiUtilities.createHtmlHelpTextArea(mLocalizer.msg("info","The times of the  buttons are also used for the '<a href=\"#link\">{0}</a>' in the tray menu.", TrayOnTimeSettingsTab.getName()), new HyperlinkListener() {
        public void hyperlinkUpdate(HyperlinkEvent e) {
          if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
            Plugin.getPluginManager().showSettings(SettingsItem.TRAYONTIMEPROGRAMS);
          }
        }
View Full Code Here


  {
    messages = Messages.getInstance();
    contentpane = new JPanel();
    contentpane.setLayout(new VerticalLayout());

    helpPane = new JEditorPane();
    helpPane.setEditable(false);
    helpPane.setEditorKit(new HTMLEditorKit());
    helpPane.setPreferredSize(new Dimension(600, 100));
   
    final JPanel toolbar = new JPanel();
View Full Code Here

  {
    final JPanel content = new JPanel(new BorderLayout());
    content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

    final InternalDemoHandler demoHandler = getDemoHandler();
    final JEditorPane editorPane = new JEditorPane();
    final URL url = demoHandler.getDemoDescriptionSource();
    editorPane.setEditable(false);
    editorPane.setPreferredSize(new Dimension(400, 200));
    if (url != null)
    {
      try
      {
        editorPane.setPage(url);
      }
      catch (IOException e)
      {
        editorPane.setText("Unable to load the demo description. Error: " + e.getMessage());
      }
    }
    else
    {
      editorPane.setText("Unable to load the demo description. No such resource.");
    }

    final JScrollPane scroll = new JScrollPane(editorPane,
        JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
View Full Code Here

    return externalHandlerArea;
  }

  protected JComponent createDescriptionTextPane(final URL url)
  {
    final JEditorPane editorPane = new JEditorPane();
    editorPane.setEditable(false);
    editorPane.setPreferredSize(new Dimension(400, 200));
    if (url != null)
    {
      try
      {
        editorPane.setPage(url);
      }
      catch (IOException e)
      {
        logger.error("Failed to load demo description", e);
        editorPane.setText("Unable to load the demo description. Error: " + e
            .getMessage());
      }
    }
    else
    {
      editorPane.setText(
          "Unable to load the demo description. No such resource.");
    }

    return new JScrollPane(editorPane,
        JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
View Full Code Here

  protected JEditorPane editorPane;
 
  public LicensePanel(Installer installer) {
    super(installer);
   
        editorPane = new JEditorPane();
        editorPane.setEditable(false);
    editorPane.setAutoscrolls(true);
    setLayout(new GridLayout());
    add(new JScrollPane(editorPane));
  }
View Full Code Here

      boxPanel.add(cb);
    }
    scrollableBoxPanel.add(boxPanel, BorderLayout.NORTH);
    packSection.add(new JScrollPane(scrollableBoxPanel),BorderLayout.WEST);

    tipPane = new JEditorPane();
        tipPane.setEditable(false);
        tipPane.setAutoscrolls(false);
        tipPane.setContentType("text/html");
    tipPane.setText(Installer.resources.getString("pointPackageForDescription"));
        packSection.add(tipScroll = new JScrollPane(tipPane),BorderLayout.CENTER);
View Full Code Here

                    content += "<li>" + p.about() + "</li>";
                }
                if (pluginLineWritten) {
                    content += "</ul></p>";
                }
                JEditorPane jdp = new JEditorPane("text/html", content);
                jdp.setEditable(false);
                aboutFrame.getContentPane().setLayout(new BoxLayout(aboutFrame.getContentPane(), BoxLayout.Y_AXIS));
                // Set Header
                JPanel header = new JPanel(new BorderLayout());
                header.setBackground(Color.WHITE);
                JLabel headerLogo = new JLabel(resources.getIcon("jsynIconHightResIcon"));
View Full Code Here

  // returns a "short info" panel, if something is available
    private JPanel getDescriptionPanel() {
        JPanel back = null;

        JEditorPane infoText = null;

        URL infoURL = JabRef.class.getResource(GUIGlobals.getLocaleHelpPath() +
            GUIGlobals.shortAuxImport);
        if (infoURL != null) {
            try {
                infoText = new JEditorPane();
                infoText.setEditable(false);
                infoText.setPreferredSize(new Dimension(240, 50));
                infoText.setMinimumSize(new Dimension(180, 50));
                infoText.setPage(infoURL);
                infoText.setBackground(GUIGlobals.infoField);
                infoText.setBorder(new EtchedBorder(EtchedBorder.LOWERED));

                // content
                back = new JPanel();
                back.setLayout(new BorderLayout());
                back.add(infoText, BorderLayout.PAGE_START);
View Full Code Here

        else
        {
            buildCommand( panel2, gridBag2, c2, 1, DemoApp.getRes().getString( "Daemon" ), "daemon", DemoApp.getRes().getString( "Installs and starts this app as Daemon" ) );
        }

        m_logTextArea = new JEditorPane();
        jEditorPane2 =  new JEditorPane();
        m_logTextArea.setContentType( "text/html;" );
        jEditorPane2.setContentType( "text/html; charset=UTF-8" );
        jEditorPane2.setEditable( false );
        // Set CSS format rule
        Font font = UIManager.getFont( "Label.font" );
View Full Code Here

  /**
   *
   */
  public String convert(String srcText)
  {
    JEditorPane editorPane = new JEditorPane("text/html", srcText);
    editorPane.setEditable(false);

    List elements = new ArrayList();

    Document document = editorPane.getDocument();

    Element root = document.getDefaultRootElement();
    if (root != null)
    {
      addElements(elements, root);
View Full Code Here

TOP

Related Classes of javax.swing.JEditorPane$HeaderParser

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.