I have an arraylist (of strings) that I want to transfer into the elements of a listbox. I cant seem to figure out how to do this. I am using netbeans and didnt create the listbox myself.
ArrayList arr = new ArrayList();
// populate arraylist with strings
listBox.SetListData(arr); // Wont work
listBox.SetListData(arr.ToString()); // Wont work either