When HTML pages are rendered in JEditorPane using HTMLEditorKit from JDK there are a problems with framesets. If the application sets its own kit for text/html this kit is used although it would be better to use kit from superior component. Another problem is that FrameView always fails to construct its component because insets are not initialized. This can be observed for example when generated java doc is displayed. Following exception is thrown:
Thu Jul 12 16:41:19 CEST 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
at javax.swing.text.html.FrameView.setMargin(FrameView.java:142)
at javax.swing.text.html.FrameView.createComponent(FrameView.java:75)
at javax.swing.text.ComponentView.setComponentParent(ComponentView.java:253)
at javax.swing.text.ComponentView$1.run(ComponentView.java:225)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
###@###.### 10/14/04 14:25 GMT