* javax/swing/JComboBox.java (constructors): selecting the
first item if the box was constructed from the provided
non - empty array or vector.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98376
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-04-19 Audrius Meskauskas <audriusa@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-04-19 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/peer/gtk/GdkGraphics.java
public JComboBox(Object[] itemArray)
{
this(new DefaultComboBoxModel(itemArray));
+
+ if (itemArray.length > 0)
+ setSelectedIndex(0);
}
/**
public JComboBox(Vector itemVector)
{
this(new DefaultComboBoxModel(itemVector));
+
+ if (itemVector.size() > 0)
+ setSelectedIndex(0);
}
/**