I am trying to display the Key, Value into a new row each time the K,V are read. I am confused as to why ALL K,V are showing up in the same row of my JTable, one right after the other. If I have a get/set as shown below, what else do I need to populate a new row to show the next K,V entry? Thanks!
public Object getValueAt(int row, int col)
{
switch(col)
{
case 0:
return statushash.keySet().toString();
case 1:
return statushash.values().toString();
}
return "";
}
public void setValueAt(Object value, int row, int col)
{
switch(col)
{
case 0:
statushash.keySet().toString();
break;
case 1:
statushash.values().toString();
break;
}
}