Package com.salas.bb.utils.uif.html

Examples of com.salas.bb.utils.uif.html.CustomHTMLEditorKit


        // Description area
        taDescription = new JEditorPane();
        Color back = taDescription.getBackground();
        taDescription.setEditable(false);
        taDescription.setBackground(back);
        taDescription.setEditorKit(new CustomHTMLEditorKit());

        HTMLDocument doc = (HTMLDocument)taDescription.getDocument();
        Style def = doc.getStyle("default");
        Font font = UIManager.getFont("TextArea.font");
        if (SystemUtils.IS_OS_MAC) font = UifUtilities.applyFontBias(font, -2);
View Full Code Here


    {
        super(parent, Strings.message("spw.dialog.title"));

        txMessages = new JEditorPane();
        txMessages.setEditable(false);
        txMessages.setEditorKit(new CustomHTMLEditorKit());
    }
View Full Code Here

        StandardArticle article = new StandardArticle("a");
        article.setPublicationDate(new Date());

        display = new HTMLArticleDisplay(article, new SampleArticleDisplayConfig(),
            false, null, new CustomHTMLEditorKit());
    }
View Full Code Here

        lbTitle = new JLabel(aTitle);
        lbTitle.setToolTipText(aTitle);

        tfText = new JEditorPane();
        tfText.setEditorKit(new CustomHTMLEditorKit());
        tfText.setText(StringUtils.excerpt(aText, EXCERPT_SENTENCES, EXCERPT_MIN_CHARS, EXCERPT_MAX_CHARS));
        tfText.setEditable(false);
        tfText.setToolTipText("<html>" + aText);

        HTMLDocument doc = (HTMLDocument)tfText.getDocument();
View Full Code Here

        StandardArticle article1 = new StandardArticle("1");
        article1.setPublicationDate(new Date());
        StandardArticle article2 = new StandardArticle("2");
        article2.setPublicationDate(new Date());

        CustomHTMLEditorKit editorKit = new CustomHTMLEditorKit();
       
        HTMLArticleDisplay view1 = new HTMLArticleDisplay(article1,
            sampleArticleConfig, false, null, editorKit);
        HTMLArticleDisplay view2 = new HTMLArticleDisplay(article2,
            sampleArticleConfig, false, null, editorKit);
View Full Code Here

     */
    private JEditorPane createTextArea()
    {
        final JEditorPane pane = new JEditorPane();

        pane.setEditorKit(new CustomHTMLEditorKit());
        pane.setAlignmentX(0.0f);
        pane.setEditable(false);

        return pane;
    }
View Full Code Here

        boolean smartFeed = loadedFeed != aArticle.getFeed();

        IArticleDisplayConfig articleConfig = htmlConfig.getArticleViewConfig();

        return new HTMLArticleDisplay(aArticle, articleConfig, smartFeed, this,
            new CustomHTMLEditorKit());
    }
View Full Code Here

TOP

Related Classes of com.salas.bb.utils.uif.html.CustomHTMLEditorKit

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.