Hi,
I'm using NetBeans 6.9.1 . And in a form i place a combobox and a Button. I would like to click the button and fill the combobox with values from a String [].
I tried:
but all i get in the combobox text is "[Ljava.lang.String;@1050169".Code:private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String[] LotOfItems = {"item1", "item2"};
jComboBox1.removeAllItems();
jComboBox1.addItem(LotOfItems);
}
Thanks
