private void STRIKETHROUGHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_STRIKETHROUGHActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_STRIKETHROUGHActionPerformed
private void setMimeType(JEditorPane editorPane, String mimeType, String extension) {
FileSystem fileSystem = FileUtil.createMemoryFileSystem();
try {
FileObject file = fileSystem.getRoot().createData("template", extension);
DataObject data = DataObject.find(file);
if (data != null) {
EditorKit kit = CloneableEditorSupport.getEditorKit(mimeType);
editorPane.setEditorKit(kit);
editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, data);