/** * Creates a new <code>BaseTextPane</code>, with a specified document model. * A new instance of <code>javax.swing.text.StyledEditorKit</code> * is created and set. * * @param doc the document model */ public BaseTextPane(StyledDocument doc) { super(doc); initialize(); }
/** * Creates a new <code>BaseTextPane</code>. A new instance of * <code>StyledEditorKit</code> is * created and set, and the document model set to <code>null</code>. */ public BaseTextPane() { super(); initialize(); }