HTMLEditor

  • 创建HTMLEditorHTMLEditor htmlEditor = new HTMLEditor();

  • 设置宽高htmlEditor.setPrefSize(800, 600);

  • 设置内容htmlEditor.setHtmlText("<h1>Hello World</h1>");

  • 获取内容System.out.println(htmlEditor.getHtmlText());