Clazz.declarePackage ("javajs.swing");
Clazz.load (["javajs.swing.Document", "$.JComponent"], "javajs.swing.JTextPane", ["JU.SB"], function () {
c$ = Clazz.declareType (javajs.swing, "JTextPane", javajs.swing.JComponent, javajs.swing.Document);
Clazz.makeConstructor (c$, 
function () {
Clazz.superConstructor (this, javajs.swing.JTextPane, ["txtJTP"]);
this.text = "";
});
$_M(c$, "getDocument", 
function () {
return this;
});
$_V(c$, "insertString", 
function (i, s, object) {
i = Math.min (i, this.text.length);
this.text = this.text.substring (0, i) + s + this.text.substring (i);
}, "~N,~S,~O");
$_V(c$, "toHTML", 
function () {
var sb =  new JU.SB ();
sb.append ("<textarea type=text id='" + this.id + "' class='JTextPane' style='" + this.getCSSstyle (98) + "'>" + this.text + "</textarea>");
return sb.toString ();
});
});
