Package com.inet.html


package com.inet.html
This package contains the classes required to extend Java's StyledDocument. Which are basically the Document itself, the writer, the parser and the editor kit including a view factory. So the classes of this package are the main entry point for integrating JWebEngine with Java's JEditorPane

To use JWebEngine there are two simple ways:

  • To register JWebEngine as global text/html renderer, put this code into a static initializer
    JEditorPane.registerEditorKitForContentType( "text/html", "com.inet.html.InetHtmlEditorKit" );
  • To explicitly set JWebEngine to a specific JEditorPane
    JEditorPane editorPane = ...
     editorPane.setEditorKit( new InetHtmlEditorKit() );