6 * A simple implementation of a Swing JTextPane.
7 * Operates as its own Document; no attributes
12 public class JTextPane extends JComponent implements Document {
19 public Document getDocument() {
24 public void insertString(int i, String s, Object object) {
25 i = Math.min(i, text.length());
26 text = text.substring(0, i) + s + text.substring(i);
30 public String toHTML() {
32 sb.append("<textarea type=text id='" + id + "' class='JTextPane' style='" + getCSSstyle(98, 98) + "'>"+ text + "</textarea>");