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

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

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

JTextPane.setEditorKitForContentType介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mobility-cldcplatform

/** Creates new form ClasspathPanel */
public ClasspathPanel() {
  initComponents();
  infoPanel.setEditorKitForContentType("text/html", new HTMLEditorKit()); // NOI18N
  infoPanel.setContentType("text/html;charset=UTF-8"); // NOI18N
  classpathList.addListSelectionListener(new ListSelectionListener() {
    @SuppressWarnings("synthetic-access")
    public void valueChanged(@SuppressWarnings("unused")
    final ListSelectionEvent e) {
      final Object[] selectedValues = classpathList.getSelectedValues();
      removeButton.setEnabled(selectedValues != null  &&  selectedValues.length > 0);
    }
  });
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mobility-cldcplatform

infoPanel.setEditorKitForContentType("text/html", new HTMLEditorKit()); //NOI18N
infoPanel.setContentType("text/html;charset=UTF-8"); //NOI18N
infoPanel.putClientProperty(JTextPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);

代码示例来源:origin: fr.inria.wimmics/kggui

textPaneLogs.setEditorKitForContentType("text/plain", textPaneLogs.getEditorKitForContentType("text/plain"));
textPaneLogs.setFont(new Font("Monospaced", Font.PLAIN, 12));
scrollPaneLogs.setViewportView(textPaneLogs);

代码示例来源:origin: Wimmics/corese

textPaneLogs.setEditorKitForContentType("text/plain", textPaneLogs.getEditorKitForContentType("text/plain"));
textPaneLogs.setFont(new Font("Monospaced", Font.PLAIN, 12));
scrollPaneLogs.setViewportView(textPaneLogs);

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mobility-cldcplatform

/** Creates new form CustomizerPanel */
public CustomizerPanel(J2MEPlatform platform) {
  initComponents();
  infoPanel.setEditorKitForContentType("text/html", new HTMLEditorKit()); // NOI18N
  infoPanel.setContentType("text/html;charset=UTF-8"); // NOI18N
  if (platform.getType().equalsIgnoreCase("custom")) {
    jTabbedPane1.remove(jPanel5); //NOI18N
    if (platform.isMe3Platform()) {
      jTextFieldPreverify.setEnabled(true);
    }
  } else {
    jTabbedPane1.remove(jPanel6);
  }
  if (!platform.isMe3Platform()) {
    jTabbedPane1.remove(jPanel3);
  }
  mSources = new DefaultListModel();
  lSourcePaths.setModel(mSources);
  mJavaDocs = new DefaultListModel();
  lJavaDocPaths.setModel(mJavaDocs);
  loadData(platform);
  addListeners();
}

相关文章

JTextPane类方法