empty TextArea(int, int) constructor

Mike Grupenhoff kashmir at munge.com
Sun Aug 16 21:47:38 PDT 1998


In the latest copy of TextArea (rev 1.1 in the public cvs tree),
the constructor taking (rows, cols) is empty.  This causes problems
later when it dereferences a null parent.

A patch is attached.

mike

Index: TextArea.java
===================================================================
RCS file: /home/cvspublic/kaffe/libraries/javalib/java/awt/widgets/TextArea.java,v
retrieving revision 1.1
diff -u -r1.1 TextArea.java
--- TextArea.java	1998/07/14 17:01:59	1.1
+++ TextArea.java	1998/08/17 04:33:36
@@ -838,6 +838,7 @@
 }
 
 public TextArea( int rows, int cols) {
+	this( null, rows, cols, SCROLLBARS_BOTH);
 }
 
 public void add( PopupMenu m) {



More information about the kaffe mailing list