diff options
Diffstat (limited to 'javax/swing')
-rw-r--r-- | javax/swing/JEditorPane.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/javax/swing/JEditorPane.java b/javax/swing/JEditorPane.java index 9e13b4418..ab683c7a5 100644 --- a/javax/swing/JEditorPane.java +++ b/javax/swing/JEditorPane.java @@ -711,7 +711,10 @@ public class JEditorPane extends JTextComponent { try { - e = (EditorKit) Class.forName(className).newInstance(); + // XXX - This should actually depend on the classloader + // registered with the type. See registerEditorKitForContentType. + ClassLoader ldr = ClassLoader.getSystemClassLoader(); + e = (EditorKit) Class.forName(className, true, ldr).newInstance(); } catch (Exception e2) { |