JComboBox containing data from index positions in a file Java

I have a text file as follows which contains data about items of stock. Index position 1 of each line contains the name of the product. I want to be able to take that index position from each line in the file, and display it in a combobox, but I don't know how to do that. I'm trying to use different classes too.

This is the file as reference



Read more here: https://stackoverflow.com/questions/65711447/jcombobox-containing-data-from-index-positions-in-a-file-java

Content Attribution

This content was originally published by wowJasmine at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: