javax.swing.JEditorPane.setEditorKitForContentType()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(125)

本文整理了Java中javax.swing.JEditorPane.setEditorKitForContentType()方法的一些代码示例,展示了JEditorPane.setEditorKitForContentType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JEditorPane.setEditorKitForContentType()方法的具体详情如下:
包路径:javax.swing.JEditorPane
类名称:JEditorPane
方法名:setEditorKitForContentType

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());

相关文章

JEditorPane类方法