Example usage for javax.swing.text.html HTMLDocument HTMLDocument

List of usage examples for javax.swing.text.html HTMLDocument HTMLDocument

Introduction

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

Prototype

public HTMLDocument() 

Source Link

Document

Constructs an HTML document using the default buffer size and a default StyleSheet.

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  . co m*/
    debugTextPane.setBackground(Color.WHITE);
    debugTextPane.setEditorKit(htmlEditorKit);
    htmlEditorKit.install(debugTextPane);
    debugTextPane.setDocument(htmlDocument);
}