< prev index next >
src/java.desktop/share/classes/javax/swing/JEditorPane.java
Print this page
*** 1194,1204 ****
} else {
// Will only happen if developer has invoked
// registerEditorKitForContentType(type, class, null).
c = SwingUtilities.loadSystemClass(classname);
}
! k = (EditorKit) c.newInstance();
kitRegistry.put(type, k);
} catch (Throwable e) {
k = null;
}
}
--- 1194,1204 ----
} else {
// Will only happen if developer has invoked
// registerEditorKitForContentType(type, class, null).
c = SwingUtilities.loadSystemClass(classname);
}
! k = (EditorKit) c.getDeclaredConstructor().newInstance();
kitRegistry.put(type, k);
} catch (Throwable e) {
k = null;
}
}
< prev index next >