本文整理了Java中javax.swing.JEditorPane.setEditorKitForContentType()
方法的一些代码示例,展示了JEditorPane.setEditorKitForContentType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JEditorPane.setEditorKitForContentType()
方法的具体详情如下:
包路径:javax.swing.JEditorPane
类名称:JEditorPane
方法名:setEditorKitForContentType
暂无
代码示例来源:origin: javax.help/javahelp
public void setEditorKit(String type, EditorKit kit) {
debug("setEditorKit("+type+", "+kit+")");
if (registry == null) {
registry = new Hashtable(3);
}
registry.put(type, kit);
if (html != null) {
debug(" type: "+type);
debug(" kit: "+kit);
html.setEditorKitForContentType(type, kit);
if (debug)
debug(" kit got: "+html.getEditorKitForContentType(type));
}
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_components
results.setEditorKitForContentType(TEXT_HTML, embedded ? defaultHtmlEditor : customisedEditor);
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
errorMessage.setEditable(false);
errorMessage.setContentType("text/html");
errorMessage.setEditorKitForContentType("text/plain", new StyledEditorKit());
errorMessage.setEditorKitForContentType("text/html", new HTMLEditorKit());
代码示例来源:origin: org.swinglabs.swingx/swingx-all
errorMessage.setEditable(false);
errorMessage.setContentType("text/html");
errorMessage.setEditorKitForContentType("text/plain", new StyledEditorKit());
errorMessage.setEditorKitForContentType("text/html", new HTMLEditorKit());
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
errorMessage.setEditable(false);
errorMessage.setContentType("text/html");
errorMessage.setEditorKitForContentType("text/plain", new StyledEditorKit());
errorMessage.setEditorKitForContentType("text/html", new HTMLEditorKit());
代码示例来源:origin: org.swinglabs.swingx/swingx-core
errorMessage.setEditable(false);
errorMessage.setContentType("text/html");
errorMessage.setEditorKitForContentType("text/plain", new StyledEditorKit());
errorMessage.setEditorKitForContentType("text/html", new HTMLEditorKit());
代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop
errorMessage.setEditable(false);
errorMessage.setContentType("text/html");
errorMessage.setEditorKitForContentType("text/plain", new StyledEditorKit());
errorMessage.setEditorKitForContentType("text/html", new HTMLEditorKit());
内容来源于网络,如有侵权,请联系作者删除!