]> source.dussan.org Git - vaadin-framework.git/commitdiff
same default value for rta as for textfield
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 28 Oct 2010 07:29:25 +0000 (07:29 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 28 Oct 2010 07:29:25 +0000 (07:29 +0000)
svn changeset:15755/svn branch:6.5

src/com/vaadin/ui/RichTextArea.java

index 6292aaa6999b6c41b354e619c750b4197e20931f..10e5259bc2727658cb4f439e59792b42eacb0be3 100644 (file)
@@ -38,6 +38,7 @@ public class RichTextArea extends AbstractTextField {
      *            the caption for the editor.
      */
     public RichTextArea(String caption) {
+        this();
         setCaption(caption);
     }
 
@@ -76,8 +77,8 @@ public class RichTextArea extends AbstractTextField {
      *            the initial text content of the editor.
      */
     public RichTextArea(String caption, String value) {
-        this(caption);
         setValue(value);
+        setCaption(caption);
     }
 
     @Override