Skip to content

DevFaqEditorJEPForMimeType

Antonio Vieiro edited this page Jan 25, 2018 · 1 revision

DevFaqEditorJEPForMimeType

How can I create JEditorPane for a specific document type?

You need to find the right EditorKit first and then set it on your JEditorPane. Here is an example showing how to do that for a java file.

EditorKit kit = CloneableEditorSupport.getEditorKit("text/x-java");

JEditorPane jep = new JEditorPane();
jep.setEditorKit(kit);

Applies to: NetBeans 6.x

Platforms: All

Apache Migration Information

The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.

This page was exported from http://wiki.netbeans.org/DevFaqEditorJEPForMimeType , that was last modified by NetBeans user Vstejskal on 2010-06-16T14:06:08Z.

NOTE: This document was automatically converted to the AsciiDoc format on 2018-01-26, and needs to be reviewed.

Clone this wiki locally