You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2013/02/16 00:49:41 UTC

svn commit: r1446817 - /pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java

Author: smartini
Date: Fri Feb 15 23:49:41 2013
New Revision: 1446817

URL: http://svn.apache.org/r1446817
Log:
PIVOT-888: (post fix) force the right initialization (but without triggering unnecessary setText, as requested by this issue)

Modified:
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java?rev=1446817&r1=1446816&r2=1446817&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/TextArea.java Fri Feb 15 23:49:41 2013
@@ -601,7 +601,11 @@ public class TextArea extends Component 
 
     public TextArea() {
         installSkin(TextArea.class);
-        setText("");
+        try {
+            setText(new StringReader(""));
+        } catch (IOException exception) {
+            throw new RuntimeException(exception);
+        }
     }
 
     @Override