First, many thanks for reading my post, happy to have found you!
I have data(objects) that is stored in a hashmap, my goal is to store this data in a JTable, using a separate cell for each entry, rather than starting on a new column each time.
I am creating my own table model (as I want it to detect the correct data type, and customize the data in certain ways). My Hashmap is being initialised and fed in my table model's class.
My question is:
is there a way I can somehow create a new JTable by giving it a hashmap, by customizing my model, or would I have to convert it to either vector or multidimentional array of objects?
- I am imagining a solution would be to convert this hashmap into an arrayList that I will then manipulate to create my JTable. How can I convert my hashmap into a list of objects?
-Any advice on how to achieve this?