This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: BorderLayout fixlet


I'm checking this in.

This fixes a minor bug in BorderLayout.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* java/awt/BorderLayout.java (addLayoutComponent): Added missing
	`else'.

Index: java/awt/BorderLayout.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/BorderLayout.java,v
retrieving revision 1.7
diff -u -r1.7 BorderLayout.java
--- java/awt/BorderLayout.java 2002/01/22 22:40:04 1.7
+++ java/awt/BorderLayout.java 2002/01/24 06:33:45
@@ -273,7 +273,7 @@
 
   if (str == null || str.equals(CENTER))
     center = component;
-  if (str.equals(NORTH))
+  else if (str.equals(NORTH))
     north = component;
   else if (str.equals(SOUTH))
     south = component;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]