java - Referencing JComboBox values that are added dynamically -
i'm new java (having switched on -gulp- visualbasic), , far i've been getting along fine examples provided on site. 1 thing can't figure out how reference combo boxes , labels added dynamically (or assign listeners them). here's problem set:
i writing program import items excel , output them kml file google earth. since not requiring user populate pre-specified excel format, need account variations in location of different fields within excel. have figured out how add combo boxes via iterator, has stopped me how use them reference label later (since created name 'combobox' , 'label').
i have example of excel file, gui, unfortunately don't have enough rep post picture. describe it, user imports excel file (with title bar says column contains: id, description, comments, location), , iterator creates equal number of combo boxes have user choose of columns matches 3 set options google earth (label, description, location). need each combo box reference it’s corresponding label ('label' = 'id') when run export feature, appropriate cell data populated in kml file.
thanks in advance help!
anytime dynamically add object, add arraylist well. preserve reference , can iterate through arraylist whenever need find it.
Comments
Post a Comment