Hi
I want to feed a jtable with my datastructure map
in java tutorials i found the followingCode:Map<Object , List<Object>> myMap;
My question is :Code:There are two JTable constructors that directly accept data (SimpleTableDemo uses the first):
* JTable(Object[][] rowData, Object[] columnNames)
* JTable(Vector rowData, Vector columnNames)
Should iterate over the map and read each List . Convert the List to Vector and then add it ?
There is also another approach i.e. to add Vector ( row data ) directly into the DataModel
Which is best approach ?
Regards
kmm
