Hi
I have a JcomboBox. I want to display all the item id's in the jcombobox.For that I wrote a function selectId(). It is returning all the Id correctly.But it is not displaying in the Jcombobox.It is displaying something like this.[Ljava.lang.Object;@30d82d in the combobox. Can anybody tell me why it is like that.

the code is:-
public Object[] selectItemID(){
ArrayList itemNo = null;

try {
statement = dbConnection.prepareStatement("select ItemId from ItemDetails");
ResultSet itemNumberResult = statement.executeQuery();
itemNo = new ArrayList();

while(itemNumberResult.next())
{
String item = itemNumberResult.getString(1);
itemNo.add(item);
System.out.println("itemNo " +item);

}
} catch (SQLException e) {
e.printStackTrace();
}
return itemNo.toArray();
}



itemno=new JComboBox( );

DbActivity dbconnection = new DbActivity();
Object[] result= dbconnection.selectItemID();
for(int i = 0; i < result.length; i++) {
itemno.addItem(result);
System.out.println(result[i]);
}