This would typically be the same as the ClassLoader used to load the EditorKit. If the documents ClassLoader is null, Class.forName is used. If the class can successfully be loaded, an attempt will be made to create an instance of it by calling Class.newInstance . An attempt will be made to narrow the instance to type java.awt.Component to display the object. This view can also manage a set of parameters with limitations.
Reflection is used to set the parameter.
Currently, this is limited to a very simple single parameter of type String. Creates a new ObjectView object. Methods inherited from class javax.swing.text. Creates a new ObjectView object. The classid is used as a specification of the classname, which we try to load.