Class JTextPane

  • All Implemented Interfaces:
    Document

    public class JTextPane
    extends JComponent
    implements Document
    A simple implementation of a Swing JTextPane. Operates as its own Document; no attributes
    Author:
    hansonr
    • Constructor Detail

      • JTextPane

        public JTextPane()
    • Method Detail

      • getDocument

        public Document getDocument()
      • insertString

        public void insertString​(int i,
                                 java.lang.String s,
                                 java.lang.Object object)
        Specified by:
        insertString in interface Document
      • toHTML

        public java.lang.String toHTML()
        Specified by:
        toHTML in class Component