I want to create a JList that contains entries of a Hashtable of String and object :
Hashtable<String,Object>
the JList element should contain the hashtable entry and display the value of the entry key that is a string ...
Is it possible ? How can it be done ?
Implement the ListModel interface by extending AbstractListModel. Use the derived model to create your JList. See also How to Use Lists.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With