setting jcombobox

hi....i have an array of size 100, but currently ony a few are store with values, i embed the array into jcombobox....i need to set my combobox to display only the the values i have in my array....what should i do?....it is that i need to first get the index of the array and store it in a variable, use the variable to set the index of the jcombobox?

[358 byte] By [progfreaka] at [2007-10-3 2:39:49]
# 1
err....thank in advance.....i need to go sleep...its 3.15am
progfreaka at 2007-7-14 19:38:05 > top of Java-index,Java Essentials,New To Java...
# 2
use DefaultComboBoxModel. That way, it would be memory wise and easily extendible since it uses vector not array. Getting the selected elements in the combobox would be easy too. http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/DefaultComboBoxModel.html
dfkljadkfljdfla at 2007-7-14 19:38:05 > top of Java-index,Java Essentials,New To Java...