[kaffe] CVS kaffe (robilad): swing fixlet

Kaffe CVS cvs-commits at kaffe.org
Sun May 29 17:14:37 PDT 2005


PatchSet 6588 
Date: 2005/05/30 00:03:59
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
swing fixlet

Members: 
	libraries/javalib/javax/swing/plaf/basic/BasicFileChooserUI.java:1.1->1.2 
	ChangeLog:1.4114->1.4115 

Index: kaffe/libraries/javalib/javax/swing/plaf/basic/BasicFileChooserUI.java
diff -u kaffe/libraries/javalib/javax/swing/plaf/basic/BasicFileChooserUI.java:1.1 kaffe/libraries/javalib/javax/swing/plaf/basic/BasicFileChooserUI.java:1.2
--- kaffe/libraries/javalib/javax/swing/plaf/basic/BasicFileChooserUI.java:1.1	Sat May 21 15:13:43 2005
+++ kaffe/libraries/javalib/javax/swing/plaf/basic/BasicFileChooserUI.java	Mon May 30 00:03:59 2005
@@ -1299,19 +1299,11 @@
     c.anchor = GridBagConstraints.EAST;
     bottomPanel.add(closePanel, c);
 
-    filechooser.setLayout(new GridBagLayout());
+    filechooser.setLayout(new BorderLayout());
 
-    c.anchor = GridBagConstraints.WEST;
-    c.gridx = 0;
-    c.gridy = 0;
-    filechooser.add(topPanel, c);
-
-    c.gridy = 1;
-    filechooser.add(centrePanel, c);
-
-    c.gridy = 2;
-    c.fill = GridBagConstraints.HORIZONTAL;
-    filechooser.add(bottomPanel, c);
+    filechooser.add(topPanel, BorderLayout.NORTH);
+    filechooser.add(centrePanel, BorderLayout.CENTER);
+    filechooser.add(bottomPanel, BorderLayout.SOUTH);
   }
 
   /**
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4114 kaffe/ChangeLog:1.4115
--- kaffe/ChangeLog:1.4114	Sun May 29 23:59:56 2005
+++ kaffe/ChangeLog	Mon May 30 00:03:50 2005
@@ -1,5 +1,10 @@
 2005-05-30  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/javalib/javax/swing/plaf/basic/BasicFileChooserUI.java: 
+	(installComponents) Use a BorderLayout for the filechooser.
+
+2005-05-30  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/javax/swing/JRootPane.java: 
 	(layoutContainer, preferredLayoutSize) Use getContentPane
 	to fix initialisation problems.




More information about the kaffe mailing list