I\'ve a trivial question. I need to load an existing file into JEditorPane using custom editor kit. I\'ve a editor kit, a file with some extension and I need to for
JEditorPane
Set your EditorKit and user the kit's read() method passing the file there.
The reader used in the read method should understand how to parse the content.