populating a JList
I have to create a JList and the items I need to display are store in HashMap table. What would be the easiest way to populate this JList. Basically the items I want to display/show in the JList are the key values of the HashMap. Thanks in advance for any suggestions.
You could always get the key set via HashMap's keySet() method, and Sets are iterable. Check out the API for details.
Thanks A lot!!. It sound like that is the way to go. I was even thinking of getting the keyset values and create an array.