[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath : swing fixlet

Kaffe CVS cvs-commits at kaffe.org
Wed Mar 2 14:56:51 PST 2005


PatchSet 5489 
Date: 2005/03/02 22:47:16
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath : swing fixlet

2005-03-02  Dalibor Topic  <robilad at kaffe.org>

        Resynced with GNU Classpath.

        2005-02-27  Audrius Meskauskas  <audriusa at bluewin.ch>

        * javax/swing/JComboBox.java (constructors): selecting the
        first item if the box was constructed from the provided
        non - empty array or vector.

Members: 
	ChangeLog:1.3663->1.3664 
	libraries/javalib/javax/swing/JComboBox.java:1.6->1.7 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3663 kaffe/ChangeLog:1.3664
--- kaffe/ChangeLog:1.3663	Wed Mar  2 22:35:25 2005
+++ kaffe/ChangeLog	Wed Mar  2 22:47:16 2005
@@ -2,6 +2,16 @@
 
 	Resynced with GNU Classpath.
 
+	2005-02-27  Audrius Meskauskas  <audriusa at bluewin.ch>
+
+        * javax/swing/JComboBox.java (constructors): selecting the
+        first item if the box was constructed from the provided
+        non - empty array or vector.
+
+2005-03-02  Dalibor Topic  <robilad at kaffe.org>
+
+	Resynced with GNU Classpath.
+
 	2005-02-27  Roman Kennke  <roman at ontographics.com>
 
         * javax/swing/plaf/basic/BasicListUI:
Index: kaffe/libraries/javalib/javax/swing/JComboBox.java
diff -u kaffe/libraries/javalib/javax/swing/JComboBox.java:1.6 kaffe/libraries/javalib/javax/swing/JComboBox.java:1.7
--- kaffe/libraries/javalib/javax/swing/JComboBox.java:1.6	Thu Jan 27 14:07:11 2005
+++ kaffe/libraries/javalib/javax/swing/JComboBox.java	Wed Mar  2 22:47:23 2005
@@ -185,6 +185,9 @@
   public JComboBox(Object[] itemArray)
   {
     this(new DefaultComboBoxModel(itemArray));
+    
+    if (itemArray.length > 0) 
+      setSelectedIndex(0);
   }
 
   /**
@@ -195,6 +198,9 @@
   public JComboBox(Vector itemVector)
   {
     this(new DefaultComboBoxModel(itemVector));
+
+    if (itemVector.size() > 0)
+      setSelectedIndex(0);
   }
 
   /**




More information about the kaffe mailing list