This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I hope someone can help me.
I have a number of files in a directory and they each contain a set of files.
It is based on the English Football league. So the Directory is leagues, then I have subfolders for the 4 leagues Prem, Championship etc, inside each subfolder are text files for each team containing details of the player stats in that team.
What I need to do is have two comboboxes - the first box will list the leagues and then the second box will be populated by the particular files in that subfolder (ie the user selects premier league the second combox box is populated by Arsenal, Man utd, Liverpool etc) the user can then pick a team and see the details of that team.
I can get the first combobox to read the divisions but I do not know how to get the second combobox to be populated dependant upon the choice made.
I have seen answers online using arrays but i do not wish to use them as I want to read it from files.
Would anyone have any ideas how I can proceed?