Package org.jitterbit.ui.widget.text

Examples of org.jitterbit.ui.widget.text.KongaTextPane


        this.mode = mode;
        textPane = createTextPane();
    }
   
    private JTextPane createTextPane() {
        JTextPane tp = new KongaTextPane();
        tp.setEditable(false);
        String[] fonts = { "Courier New""Courier" }; //$NON-NLS-1$ //$NON-NLS-2$
        Font font = FontUtils.getMatchingFont(fonts, 12, Font.PLAIN);
        tp.setFont(font);
        StyledDocumentDefiner d = new StyledDocumentDefiner();
        d.addStylesToDocument(tp.getStyledDocument());
        return tp;
    }
View Full Code Here


    public void view(PipelinePluginManifest plugin) {
        xmlViewer.view(plugin.getDefinition());
    }

    private XmlTextViewer createXmlViewer() {
        JTextPane textPane = new KongaTextPane("").disableTabs();
        TextStyles.DefaultMonoSpaced.makeOver(textPane);
        XmlTextViewer viewer = new XmlTextViewer(textPane);
        viewer.setPreferredSize(new Dimension(400, 400));
        return viewer;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.text.KongaTextPane

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.