Example usage for javax.swing.text.html HTMLEditorKit install

List of usage examples for javax.swing.text.html HTMLEditorKit install

Introduction

In this page you can find the example usage for javax.swing.text.html HTMLEditorKit install.

Prototype

public void install(JEditorPane c) 

Source Link

Document

Called when the kit is being installed into the a JEditorPane.

Usage

From source file:org.codinjutsu.tools.jenkins.view.ConfigurationPanel.java

private void initDebugTextPane() {
    HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
    HTMLDocument htmlDocument = new HTMLDocument();

    debugTextPane.setEditable(false);/*w w  w . j  av  a 2  s. c  o  m*/
    debugTextPane.setBackground(Color.WHITE);
    debugTextPane.setEditorKit(htmlEditorKit);
    htmlEditorKit.install(debugTextPane);
    debugTextPane.setDocument(htmlDocument);
}