Hi all,
I've slightly improved a GridBayLayout error message.
2005-07-10 Dalibor Topic <[EMAIL PROTECTED]>
* java/awt/GridBagLayout.java:
(addLayoutComponent) Improved error message.
cheers,
dalibor topic
Index: java/awt/GridBagLayout.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/GridBagLayout.java,v
retrieving revision 1.18
diff -u -r1.18 GridBagLayout.java
--- java/awt/GridBagLayout.java 2 Jul 2005 20:32:25 -0000 1.18
+++ java/awt/GridBagLayout.java 10 Jul 2005 17:14:03 -0000
@@ -129,7 +129,9 @@
return;
if (!(constraints instanceof GridBagConstraints))
- throw new IllegalArgumentException();
+ throw new IllegalArgumentException("constraints "
+ + constraints
+ + " are not an instance of GridBagConstraints");
setConstraints (component, (GridBagConstraints) constraints);
}
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches