1 package javajs.swing;
\r
3 import javajs.util.SB;
\r
6 * A simple implementation of a Swing JTextPane.
\r
7 * Operates as its own Document; no attributes
\r
12 public class JEditorPane extends JComponent {
\r
14 public JEditorPane() {
\r
20 public String toHTML() {
\r
22 sb.append("<textarea type=text id='" + id + "' class='JEditorPane' style='" + getCSSstyle(98, 98) + "'>"+ text + "</textarea>");
\r
23 return sb.toString();
\r