For some time now I thought that my data wasn't displaying because it wasn't getting process from the array properly. As it turns out, the data is there but won't display until I resize the frame or click on the table. I am firing the 'fireTableChanged(null)' event but this doesn't seem to be the problem. What is causing this?
Here is my method that is part of my AbstractTableModel.
public void loadTableData(Map Cycletally)
{
Collection entries = Cycletally.entrySet();
Iterator it = entries.iterator();
//data = new Vector();
String[] rowData;
int i = 0;
while(it.hasNext())
{
rowData = new String[2];
Map.Entry em = (Map.Entry)it.next();
rowData[0] = em.getKey().toString();
rowData[1] = em.getValue().toString();
data[i] = rowData;
i++;
}
fireTableChanged(null);
}