JEditorPane and custom editor kit
问题 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 force the JEditorPane to recognize my file and use my editor kit. I've found only, that's possibile, but nowhere how. The kit is based on HTML and the file too. If file has the .html extension, it works, but when I rename the file to .xhtbm , it is opened as plain text. The content type is set to text/plain , but I'm unable to register