Name: akC57697 Date: 12/18/98
The javax.swing.JEditorPane doc does not specify exactly
c-tor reaction on invalid type of the content.
The javadoc says:
public JEditorPane(String type,
String text)
Creates a JEditorPane that has been initialized to the given text.
This is a convenience constructor that
calls the setContentType and setText methods.
Parameters:
type - mime type of the given text.
text - the text to initialize with.
public final void setContentType(String type)
Sets the type of content that this editor handles. This calls
getEditorKitForContentType, and then setEditorKit if an editor <--
kit can be successfully located. This is mostly convenience
method that can be used as an alternative to calling setEditorKit
directly.
If there is a charset definition specified as a parameter of the
content type specification, it will be used when loading input
streams using the associated EditorKit.
...
Parameters:
type - the non-null mime type for the content editing support.
The constructor throws NullPointerException (bugId 4198136).
======================================================================