QUOTE(dgilmore286 @ 15 Sep, 2008 - 08:20 PM)

Hello all,
I am trying to figure out how I can populate the selections of a JComboBox in NetBeans IDE. I need to have the values for each selection that displays in the combo box retrieved from an external text file. I have the program working if the values are hard coded, I have the program accessing the file and reading the values into an array. What I cannot figure out is how to have NetBeans assign the values from the array to the items to be displayed in the combo box…
Can anyone offer any suggestions?
Thank you!
Not familiar with Netbeans but you are telling me you cannot create a JComboBox without telling the IDE the values to put in it ? I seriously doubt.
Just create an empty JComboBox without telling Netbeans what to put in it.
Then read your file and addItem(String read) into the Combo