我写了简单的GUI页面:
public class Test01 {
RootPanel r = RootPanel.get();
public Test01() {
RichTextArea richTextArea = new RichTextArea();
r.add(richTextArea, 85, 134);
richTextArea.setSize("412px", "260px");
}
}
当我运行它时,我看到RichTextArea的简单矩形。但是样本周围有很多按钮,例如按钮可以制作粗体字等等。在我的情况下,它们都在哪里?在示例代码中,我看到了RichTextTollbar类的用法在哪里?
感谢。
答案 0 :(得分:4)
RichTextToolbar
位于GWT SDK的Showcase示例中:
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/samples/showcase/src/com/google/gwt/sample/showcase/client/content/text/RichTextToolbar.java
答案 1 :(得分:0)
你想要的东西没有在GWT中实现,RichTextArea只能让你改变这些东西。
您正在寻找的是这样的:
http://code.google.com/p/gwt-html-editor/
这些是社区制作的小部件。