I believe the error message is likely telling you that the column 'Time' does not exist.
In an earlier screen shot of your code (it's much more helpful if you post preformatted code rather than a screen snip), it shows you tring to access the 'Time' column, dataset.getValueAt(i, 'Time'). Now you've shown a dataset that doesn't have a Time column but rather a t_stamp column. These need to match in order for the function to work, other wise you will get an error similar to what you are seeing.
If you are unsure of the column names, or if they might change for whatever reason, and generally for performance purposes, just use the index as @amarks has already shown.
Holy hell dude thank you so much, its seemingly working aside from the fact that it is showing this weird color I do not have selected anywhere instead of the red and green it should have, but that is something I should be able to work out in time, thank you.