Hi all, How do I get JEditorPane (and its subclass JTextPane) to use my subclass of javax.swing.text.html.HTMLEditorKit instead of that last class? I need to override the method createDefaultDocument() to do doc.setAsynchronousLoadPriority(-1) instead of ...(4). Thanks, Tony
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
I've never done this for replacing the handling of a standard type, but for a non-standard type, you do this: myJEditorPaneInstance.setEditorKitForContentType("text/foo", myCustomEditorKitInstance); before setting the content type or loading in a file. I'd try this first and see if it works -- I'd expect it to, but you never know, I guess.