registerMap = new HashMap(); registerEditorKitForContentType("application/rtf", "javax.swing.text.rtf.RTFEditorKit"); registerEditorKitForContentType("text/plain", "javax.swing.JEditorPane$PlainEditorKit"); registerEditorKitForContentType("text/html", "javax.swing.text.html.HTMLEditorKit"); registerEditorKitForContentType("text/rtf", "javax.swing.text.rtf.RTFEditorKit");
  void init()  {    editorMap = new HashMap();    registerMap = new HashMap();    registerEditorKitForContentType("application/rtf",                                    "javax.swing.text.rtf.RTFEditorKit");    registerEditorKitForContentType("text/plain",                                    "javax.swing.JEditorPane$PlainEditorKit");    registerEditorKitForContentType("text/html",                                    "javax.swing.text.html.HTMLEditorKit");    registerEditorKitForContentType("text/rtf",                                    "javax.swing.text.rtf.RTFEditorKit");  }