According to

https://savannah.gnu.org/bugs/?func=detailitem&item_id=13259

the preferredSize of JTextArea should be adjusted in order to create useable results. This is fixed by this patch.

2005-06-03  Roman Kennke  <[EMAIL PROTECTED]>

   * javax/swing/JTextArea.java
   (constructor): Set preferredSize to a sane default.

/Roman

Index: JTextArea.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTextArea.java,v
retrieving revision 1.11
diff -u -r1.11 JTextArea.java
--- JTextArea.java      23 May 2005 14:08:53 -0000      1.11
+++ JTextArea.java      3 Jun 2005 13:25:33 -0000
@@ -188,6 +188,7 @@
     setText(text);
     setRows(rows);
     setColumns(columns);
+    setPreferredSize(new Dimension(440, 150));
   }
 
   /**
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to